This project hosts a hackathon website using a Flask frontend, a FastAPI backend, and an NGINX load balancer.
- Flask handles registration and UI.
- FastAPI handles problem selection and database operations.
- NGINX distributes requests across multiple FastAPI servers.
git clone https://github.com/<your-username>/hackathon-portal.git
cd hackathon-portal
python -m venv venv
venv\scripts\activatecd backend
pip install -r requirements.txt
cd ..cd frontend
pip install -r requirements.txt
cd ..cd hackathon-portal
venv\scripts\activate
uvicorn backend.main:app --port 8001This intializes the Database then press ctrl + c In the same console write
uvicorn backend.api:app --reload --port 8001cd hackathon-portal
venv\scripts\activate
python frontend/app.pyGo to your Nginx directory in your PC not the project ONE Paste nginx.conf from the project to your main nginx.conf Then from the console start your main nginx
cd nginx
start nginxTo open the website on your browser