Skip to content

BIN-PDT/WEBAUTH_FASTAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. PROJECT

git clone https://github.com/BIN-PDT/WEBAUTH_FASTAPI.git && rm -rf WEBAUTH_FASTAPI/.git

For privacy reasons, follow the format of .env.example and replace the sensitive information in .env with your own.

  • Optionally, register Redis Database or Redis Cloud to obtain REDIS_URL for Celery.

    celery -A src.celery_tasks.config worker -P solo
    
  • Replace MAIL_USERNAME & MAIL_PASSWORD (Application Password) with your Gmail Account.

  • Generate SECRET_KEY.

    python
    
    import secrets
    print(secrets.token_hex(32))
    exit()

2. VIRTUAL ENVIRONMENT

python -m venv .venv
.venv\Scripts\activate.bat

3. DEPENDENCY

python.exe -m pip install --upgrade pip
pip install -r requirements.txt

4. DATABASE

alembic upgrade head

5. RUN APPLICATION

fastapi dev src/main.py

Releases

No releases published

Packages

No packages published