25 lines
497 B
Markdown
25 lines
497 B
Markdown
|
|
|
|
#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`
|
|
|
|
|