Skip to content

n4u77i/FastAPI-with-JWT-Auth-and-Tortoise-ORM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI-with-JWT-Auth-and-Tortoise-ORM

This project was made to learn and implement the JWT auth in FastAPI with Tortoise-ORM. Tortoise-ORM is just like Django-ORM or SQLAlchemy-ORM to interact with the database. The sqlite databse is used for this project.

To run the project, you need to first create virtualenv and activate it. Then install dependencies and run the project.

python3 -m venv venv-fast-api
source venv-fast-api/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload

To use sqlite3 and generate table/schema

sqlite3 db.sqlite3
.schema
.exit

In case sqlite3 is not isntalled on your system then run sudo apt-get install sqlite3 -y

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages