Skip to content

a simple user-based note writer fastAPI application that uses sqlalchemy orm with postgreSQL

Notifications You must be signed in to change notification settings

IstakAm/notes_fastAPI

Repository files navigation

Notes

Notes is a FASTAPI app for users ro write notes.

Installation

Use the package manager pip to install the requiremets.

pip install -r requirements.txt

Database

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

Usage

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!!

About

a simple user-based note writer fastAPI application that uses sqlalchemy orm with postgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published