Georgi2704 / fastapi-users-sqlalchemy-jwt-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-users-sqlalchemy-jwt-demo

A demo for authentication with FastAPI Users using SQLAlchemy and JWT tokens.

If you want to use a virtual environment first create the environment:

python3 -m venv .venv
source venv/bin/activate

You can install the required libraries with pip. The following command will install all the required libraries for the project.

pip install -r ./requirements.txt

Start the server by running main.py or a hot reloading, api server:

uvicorn main:app --reload --port 5000

Swagger docs/GUI at:

http://127.0.0.1:5000/api/docs