the flask test app
This project is divided into 2 parts:
frontend: This is the frontend for accessing/using the API, written using React, Redux and Bootstrap.
the_flask_test: This is the backend flask api service.
Base path: /api/v1
/students
: Get all students/student
: Add new student/student/<uuid>
: Update student by id/student/uuid
: Delete student by idAPI is also documented on Swagger Hub
Before we begin with the setup process I would like to point that we've the deployed version up and running and you can use it to try out with out going into any hassels:
cd the-flask-test
docker-compose up
The react frontend sometimes does not automatically refreshes/updates the DOM. A manual reload/refresh is required to update the data. This issues seems related to docker and nginx as we were unable to reproduce the same in production.
Install and start the Postgres 11 database server.
And update the DATABASE_URL
accordingly in .env
file
pip -r requirements.txt
or using Poetry with poetry install
example.env
file and if everything looks ok then just move it to an .env
file using command: mv example.env .env
make db-upgrade
make dev-start
or to run in prod using gunicorn run: make prod-start
cd frontend
npm install
or yarn install
npm run start
or yarn run start