POC-golang-postgres-docker/README.md
2020-09-16 18:20:22 +05:00

497 B

#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