Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 981 Bytes

README.md

File metadata and controls

31 lines (29 loc) · 981 Bytes

FastAPI JWT Authentication example

This project includes authentication APIs (login, register, verify, forgot-password, reset-password, update-password) and article list and create APIs. It uses an async PostgreSQL connection with SqlAlchemy ORM. There is an alembic config also.

Installation

  • If you want to run docker you need to install docker
  • Configure your postgresql
  • Create .env from .env.example
cp .env.example .env
  • Add Postgresql config to .env
  • Run docker
docker-compose up -d --build

or

docker compose up -d --build

if you want to run this app without docker

  • Add Postgresql config to alembic/env.py and src/core/config.py
  • Use the package manager pip to install requirements.txt.
pip install -r requirements.txt
  • Run app with start.sh. It will do migrate migrations then run app
chmod 755 start.sh
sh start.sh