cd backend
pip install -r requirements.txt
// A list of allowed origins for Cross-Origin Resource Sharing (CORS). It includes multiple local development environments and specific IP addresses.
CORS_ALLOW_ORIGINS="http://localhost:5173,http://localhost:4173"
// The session expiration time in minutes.
SESSION_EXPIRE_MINUTE=360
DOCKER_MYSQL_DATABASE_URI="mysql+pymysql://user:user1234@mydatabase:3306/main_db"
MYSQL_DATABASE_URI="mysql+pymysql://user:[email protected]/main_db"
DOCKER_SESSION_DATABASE_URI="mysql+pymysql://user:user1234@mydatabase:3306/session_db"
SESSION_DATABASE_URI="mysql+pymysql://user:[email protected]/session_db"
DEFAULT_ROOT_ACCOUNT_ID="The default administrator account ID."
DEFAULT_ROOT_ACCOUNT_PASSWORD="The default administrator account password."
// The maximum number of failed login attempts before an account is locked.
MAX_FAILURES=5
// The time window (in minutes) during which failed login attempts are counted.
FAILURE_TRACKING_WINDOW_MINUTES=5
// The number of iterations used for password hashing to enhance security.
REHASH_COUNT_STANDARD=10
// The number of days to retain operation logs before deletion.
OPERATION_LOG_RETENTION_PERIOD=60
If you want to use the default MySQL URI, you must have a user named 'user' with the password 'user1234' in MySQL
uvicorn backend.main:app --reload
uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reload
cd frontend
npm install
# FastAPI URL Configuration
# URL for the FastAPI application. Change this to the production URL.
# Replace with your production FastAPI URL
PUBLIC_BACKEND_API_URL_PREFIX=http://localhost:9999/api
PRIVATE_BACKEND_API_URL=http://backend:8000/api
PORT=4173
npm run dev