Opendiscuss is a community platform where people contribute to discuss various topics.
You can find user stories in the file README-user-story.md.
You can view the ERD on dbdiagram and dbdocs.
You can check this youtube video for Quick Start Opendiscuss.
-
Rename
.env-example
to.env
. -
Run the MySQL database and the Go app using Docker Compose:
sudo docker compose up --build
MySQL credentials is:
DB_USER="user"
DB_PASSWORD="password"
DB_HOST="localhost"
DB_PORT="9306"
DB_NAME="opendiscuss"
Test hit API login:
curl --location 'http://localhost:9080/api/v1/login' \
--header 'Content-Type: application/json' \
--data '{
"username": "abdan",
"password": "abdan"
}'
Check README-user-story.md for other API.
For API documentation, you can import the file postman/opendiscuss.postman_collection.json into your Postman.