A simple project building backend CRUD app using Golang
Using example from Duomly
Before running the app, please make sure that you have the following installed:
- Docker
- Make utility
- Create two secret files for the database. Refer to the example files in the secrets folder. The files are:
db_user.txt
db_password.txt
- Run
make docker-compose
which will download the postgres image and start the database
- Compile the app by typing
make build
- Run
DB_USER={YOUR_DB_USER} DB_PASSWORD={YOUR_DB_PASSWORD} make run
. Replace the database username and password as what is set in the previous section.