Just basic golang and postgres docker poc.
Find a file
2022-05-31 14:53:58 +00:00
build dos2unix test 2020-09-15 18:27:12 +05:00
cmd issue 4, 5 ,6 and 9 fixed 2020-09-14 18:16:47 +05:00
configs Build generation and dockerfile changes 2020-09-15 14:53:57 +05:00
internal/app some refactoring 2020-09-16 18:20:22 +05:00
scripts/db issue conflict resolved 2020-09-11 19:11:00 +05:00
.env More restructuring WIP 3a 2020-09-11 17:24:55 +03:00
.gitignore Small changes 2020-09-15 15:10:09 +03:00
docker-compose.yml dos2unix test 2020-09-15 18:27:12 +05:00
go.mod env read from OS env 2020-09-15 17:59:37 +05:00
LICENSE Initial commit 2020-09-04 13:57:46 +00:00
Makefile target changed 2020-09-16 18:56:04 +05:00
README.md some refactoring 2020-09-16 18:20:22 +05:00

#How to run this project

##Navigate to root of project, run following command make run

###API interfacing

  • Get request curl http://localhost:5000/get-data?title=shahzad
  • Post request curl --request POST 'http://localhost:5000/post-data' --data "title=shahzad"

To build docker compose docker-compose up --build

To run docker compose docker-compose up -d

To connect with psql using following command docker exec -it genitywebapp_db_1 psql -U root_user -W db_genity