This is the frontend application built with Flask, designed to work with Python 3.11 and above.
- Python 3.11 or higher
- pip (Python package installer)
- Docker and Docker Compose (optional, for containerized deployment)
- Clone the repository:
git clone <repository-url>
cd frontend- Create and activate a virtual environment:
# Windows
python -m venv venv
.\venv\Scripts\activate
# Linux/MacOS
python3 -m venv venv
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
- Copy
.env.exampleto.env:
cp .env.example .env
- Edit
.envfile and configure the following variables:API_URL: Backend API URLLOG_TOKEN: Logging tokenFLASK_SECRET_KEY: Secret key for FlaskFLASK_DEBUG: Set toTruefor development,Falsefor production
- Copy
- Activate your virtual environment if not already activated
- Run the Flask development server:
python app.pyThe application will be available at http://localhost:5000
- Build and run using Docker Compose:
docker-compose up --buildapp.py: Main application entry pointroutes/: Route handlerstemplates/: HTML templatesstatic/: Static files (CSS, JS, images)utils/: Utility functionsmodels/: Data modelssettings/: Configuration settings
API_URL: Backend API endpointLOG_TOKEN: Token for logging serviceFLASK_SECRET_KEY: Secret key for Flask sessionFLASK_DEBUG: Debug mode flag
Key dependencies include:
- Flask 3.1.0
- Flask-Session 0.8.0
- PyJWT 2.10.1
- python-dotenv 1.0.1
- requests 2.32.3
For a complete list of dependencies, see requirements.txt
See the LICENSE file for details.