Notes is a FASTAPI app for users ro write notes.
Use the package manager pip to install the requiremets.
pip install -r requirements.txt
You must create a PostgreSQL database named firstapi.
Download PostgreSQL.
In linux you can install it using apt.
sudo apt install postgresql
Now create a database named firstapi.
sudo -u postgres psql -c 'firstapi;
create the first revision to commit.
python migration.py make_revision "added models"
then migrate the revision.
python migration.py migrate
run this command to start the app.
uvicorn main:app --reload
to see the swagger documentation of your running app head to this url.
http://127.0.0.1:8000/docs
Thanks and enjoy!!