Skip to content

LonglifeX/fastapi_auth_migration_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastapi Example

  • FastAPI
  • Bearer Authentication
  • SQLite database
  • Alembic migrations
  • ApiRouter

change JWT_SECRET_KEY in .env file with your own secret key

$ pip install -r requirements.txt
$ alembic upgrade head
$ fastapi run app/main.py --host localhost --port 8080

Testuser is:

{
  "username": "testuser",
  "password": "test"
}

About

fastapi with bearer auth and alembic migration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published