POC-golang-postgres-docker/README.md

25 lines
497 B
Markdown
Raw Normal View History

2020-09-04 13:57:46 +00:00
2020-09-16 13:20:22 +00: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
2020-09-11 15:58:54 +00:00
`docker exec -it genitywebapp_db_1 psql -U root_user -W db_genity`