This file explains how to set-up and run the project locally
- Python 3.x installed
- Pip package manager installed
-
Navigate to project directory
cd project-mirage
-
Create a virtual environment (optional but recommended)
python -m venv venv
-
Activate the virtual environment (venv):
-
For Windows:
venv\Scripts\activate
-
For Mac/Linux:
source venv/bin/activate
-
-
Installing dependencies
pip install -r requirements.txt
-
Run the Flask application:
python main.py
This will start the development server.
Open your web browser and go to http://127.0.0.1:5000/ to view the application.
- main.py: Flask application script.
- utils/generate.py: Module containing the
generate_random
function. - static/styles/index.css: CSS styles for the HTML template.
- templates/index.html: HTML template for the homepage.