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_URLfor Celery.celery -A src.celery_tasks.config worker -P solo -
Replace
MAIL_USERNAME&MAIL_PASSWORD(Application Password) with your Gmail Account. -
Generate
SECRET_KEY.pythonimport 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