Skip to content

keiken-shin/fast-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAST API APP

  • Implementation of JWT authentication
  • Used mongodb ('beanie')

Environment variables

  1. Create a .env file in app/ directory

  2. Populate with the following variables

    JWT_SECRET_KEY=thisisaauthfastapiapp
    
    JWT_REFRESH_SECRET_KEY=thisisaauthfastapiapp
    
    MONGO_CONNECTION_STRING=mongodb://localhost:27017 
    
    PORT=8000

Installation using Poetry

  1. Install poetry

  2. To install dependencies

    poetry install

    Note: This will also create a virtual environment

  3. To start app

    poetry run python -m app

Note: You can test endpoints via Swagger docs at /docs

Releases

No releases published

Packages

No packages published

Languages