this API was build based on a tutorial, it uses flask_sqlalchemy and flask_marshmallow as well as sqlite and you can run it using Postman or just use CURL FTW! 😄
Run the following commands on a fresh clone of the repository to set up your virtualenv:
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
For any new terminal session, as long as you've already set up the .venv
virtualenv, just run:
source .venv/bin/activate
pip3 install -r requirements.txt
You can then run either app.py
or crud.py
Just run deactivate
when you want to exit your virtualenv
This will just display "Hello world...."
python3 app.py
This creates a SQLAlchemy local database and hosts a flask app with a REST API
python3 crud.py