Giter VIP home page Giter VIP logo

fastapi-jwt-auth-full-example's Introduction

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

fastapi-jwt-auth-full-example's People

Contributors

altayakkus avatar sabuhibrahim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

altayakkus

fastapi-jwt-auth-full-example's Issues

Configure .env for db connection

Hey,
can you maybe add an example to the .env.example.
I am trying to use your repo, since it fits my use-case perfectly, but unfortunately I cannot get FastAPI to properly connect to the postgres instance, maybe because of the Pghost and pgpass.

I am searching for a solution too, in the meanwhile :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.