Skip to content
/ forum Public

Typical forum on htmltemplates with posts, votes and comments.

Notifications You must be signed in to change notification settings

Dias1c/forum

Repository files navigation

forum

Forum with clean architecture. Here you can:

  • Create posts - Share your inner world
  • Comments posts - Discuss posts
  • Vote liked/disliked posts and comments
  • But before creating you must register :)

How to run local

Run:

go run ./cmd/

Run with building file

go build -o forum.exe ./cmd
./forum.exe

Run on Docker

  1. Build image
docker build . -t forum-image
  1. Run container
docker run -p 80:8080 --rm --name forum-container forum-image
  1. Check http://localhost

For Developers

The Project's Definition of Done

It helps to you write forum with this order

Preparing

  • Configs (config files or params)
  • Database schema
  • Create and Connect to DB
  • Write dockerfile

Logic

  • sign-up
  • sign-in
  • middleware (session tracker)
  • post-create
  • post-view
  • main-page
  • post-delete
  • post-edit-page
  • post-page (likes, comments)
  • posts-own
  • posts-voted
  • comment-create
  • comment-delete
  • comments (likes)
  • posts-categories-page (filtering, posts)

Opt

  • Makrdown
    • About project (Description)
    • How To Run (Examples)