This sample project contains a RESTFul API based on the Flask with Unit-Testing
- Python (3.6 or later)
- Postgresql
- Psycopg2 and Psycopg2-binary
- flask
- Time :)
Run this command for Install requirements:
pip install -r requirements.txt
- First navigate to the root directory
- run this command
export FLASK_APP=flaskr
- (Optional for development mode) run this command
export FLASK_ENV=development
flask run
Have Fun :)
you can run each test cases by run that file using python
sample:
python flask_test.py