git clone https://github.com/suntrackspb/bewise-api.git
cd bewise-api/
Edit .env file (if needed)
DB_NAME=postgres
DB_USER=postgres
DB_PASS=postgres
DB_HOST=db
DB_PORT=5432
PGADMIN_DEFAULT_EMAIL=[email protected]
PGADMIN_DEFAULT_PASSWORD=admin
docker-compose up --build
open api: http://localhost:8000/docs/
pgadmin: http://localhost:5050
Example Request:
curl -X 'POST' \
'http://localhost:8000/api/v1/questions' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"questions_num": 1
}'