This is a Flask-based web application with a structured project layout. The application includes API endpoints, database models, and various utilities to support its functionality.
-
Clone the repository:
git clone https://github.com/yourusername/your-repo.git cd your-repo
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set up the environment variables:
Create a
.env
file in the root directory and add the necessary environment variables. Refer to theConfig
class inconfig.py
for required variables.FLASK_ENV=development SECRET_KEY=your_secret_key DATABASE_URI=your_database_uri
-
Run the database migrations:
flask db upgrade
The application configuration is managed through the Config
class. Environment variables are loaded from a .env
file using python-dotenv
.
-
Run the application:
flask run
-
Access the application:
Open your web browser and navigate to
http://127.0.0.1:5000
.