# 1 – Create & activate virtual env
Python version 3.12.7
python3 -m venv [name]
source [name]/bin/activate
# 2 – Install dependencies
pip install -r requirements.txt
Create a environment vairable named
.envFill the content like below
PASSWORD_ALGORITHM=[Your Hashing Algorithm Here]
SECRET_KEY=[Your Random Secret Key Here]
ACCESS_TOKEN_EXPIRE_MINUTES=11520
FRONTEND_HOST="0.0.0.0"
RAG_HOST="http://127.0.0.1:8001"
RAG_ROUTE="/api/rag/"
uvicorn main:app --port 8000| File | Purpose |
|---|---|
main.py |
Main entry point – FastAPI app controller and page router |
models.py |
DB Table specification |
requirements.txt |
Python dependency list (pip) |
.env |
You must create it. |
| Folder | Purpose |
|---|---|
api/ |
API routers, End Points are defined here |
core/ |
Loading .env / DB Set-up / Authentification Modules |
crud/ |
Controllers, Directly interact with DB |
schemas/ |
Req & Res data field definitions |
Capstone Team 10 · Sungkyunkwan University