https://github.com/bin-pdt/webauth_fastapi
INTRODUCTION TO PYTHON FASTAPI
https://github.com/bin-pdt/webauth_fastapi
alembic celery fastapi itsdangerous passlib pydantic pyjwt python redis sqlmodel web-backend
Last synced: 3 months ago
JSON representation
INTRODUCTION TO PYTHON FASTAPI
- Host: GitHub
- URL: https://github.com/bin-pdt/webauth_fastapi
- Owner: BIN-PDT
- Created: 2025-03-04T16:24:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-24T14:49:08.000Z (8 months ago)
- Last Synced: 2025-07-27T19:56:54.047Z (5 months ago)
- Topics: alembic, celery, fastapi, itsdangerous, passlib, pydantic, pyjwt, python, redis, sqlmodel, web-backend
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**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
```
```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
```