- Go
- Gin
- golang-migrate/migrate
- JWT
- PostgreSQL
- logrus
- Swagger
- Websocket with gorilla/websocket
- golang/mock
- Run
make up
to spin up PostgreSQL DB with Docker compose. - Install golang-migrate/migrate and run
make migrate_up
to run migrations. - Create
.env
file (see.env.example
as an example). - Run
make run
to start server.
- Authentication with GitHub & JWT
- Create, Read operations with Users
- Create, Read, Update, Delete operations with Feedback
- Create, Read operations with Comments
- Create, Read, Delete a Votes
- Deployed (Heroku), endpoint
- Add Swagger documentation
- Setup CICD
- Use Websocket to notify users about updates of feedback, comments & votes
- Add unit-tests
- Add api-tests
- Update, Delete operations with Comments
- Update, Delete operations with Users
- Install Docker. Here is an example how it can be done for Windows link
- Verify that it's installed and workes
docker version
. - Run
docker volume create product-feedback-db
to create a volume for PostgreSQL database to persist data. - Verify that it's created
docker volume ls
(should be seen in the output). - Add
.env
file to the root of the project. See.env.example
for reference. - Run
docker compose up -d
from the root of the project. - App should start and be available on http://localhost:8000. Also, you may check Swagger documentation on http://localhost:8000/docs.
- Run
docker compose down
to clean up.