first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:25:19 +03:00
commit 361dbef019
25 changed files with 814 additions and 0 deletions

32
.env.example Normal file
View File

@@ -0,0 +1,32 @@
# Copy this to .env and fill values for your environment
# Database (default: SQLite for local development)
# Database (default: MySQL for this project)
DATABASE_URL=mysql+pymysql://fastapi:password@127.0.0.1:3306/fastapi_db
# Alternatively, use a MySQL URL (example):
# DATABASE_URL=mysql+pymysql://user:password@host:3306/dbname
# Some environments use DB_URL (legacy) — set whichever you prefer
DB_URL="mysql+pymysql://fastapi:password@127.0.0.1:3306/fastapi_db"
# JWT / Security
JWT_SECRET=REPLACE_WITH_A_STRONG_RANDOM_SECRET
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=15
REFRESH_TOKEN_EXPIRE_DAYS=30
# OAuth (Google & GitHub)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URL=http://localhost:8000/auth/oauth/google/callback
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URL=http://localhost:8000/auth/oauth/github/callback
# Other
SERVER_NAME=localhost:8000
EMAILS_FROM=example@example.com
# Example: enable debug or change as needed
DEBUG=true