Skip to content

bigmario/fastapi_base_user_crud

Repository files navigation

FastAPI Base User CRUD

FastAPI REST API for user management with email/password & JWT authentication
Github actions support (Linting with flake8 y testing with pytest)

1. Set Environmient Variables

#create a new  environment variables file 
$ cp .env.example .env

then set the corresponding values to:

DB_PASSWORD=
ADMIN_PASSWORD=

MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM=
MAIL_TO=
MAIL_PORT=
MAIL_SERVER=
MAIL_FROM_NAME=

2. Deployment on Docker

# run all services
$ docker compose up --build -d

OpenAPI Documentation

http://localhost:8000/docs

Testing

$ pytest -vv

Testing Coverage

$ coverage run -m pytest 
$ coverage report 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published