This repository is the code repo of web application API's for Feedback app as for dogoodpoints assignment. This sample uses Echo as web application framework, Gorm as OR mapper and Zap logger as logger. This sample application provides only several functions as Web APIs.
- Golang v1.19
- Postgres (optional)
Perform the following steps:
- Download and install Visual Studio Code(VS Code).
- Download and install Golang.
Since this application on default use in memory storage you can also run queries and store data on a postgres db, if so then perform the following steps:
- Download and install docker. (https://www.docker.com/)
- Download and intsall docker-compose (https://docs.docker.com/compose/install/)
- Run "sudo docker-compose up -d"
- Run "sudo docker ps" to check if contianer's up and running.
- P.S define your enviroment variables correctly, template is available in ".env.sample"
- make migrate-db
perform the following steps:
- cd ./backend/
- make run *Please make sure to set your enviroment variables in .env file , template is in ".env.sample"
perform the following steps: