This repository provides a boilerplate setup for a Flask application with a modular architecture.
- project-root/: Root directory of the project.
- .venv/: Virtual environment.
- requirements.txt: Project dependencies.
- src/: Application source code.
- ai/: AI Stuffs.
- algorithms/: Predict and training algorithms
- models/: Pkl models generated by algorithms
- results/: json files represent the results of training
- controllers/: All Flask blueprints (grouped route logic).
- data/: Uploaded data from user (.CSV files).
- datatypes/: TypedDicts, ApiResponse classes, shared data types.
- models/: MongoDB schemas and data models.
- routes/: Express-style route definitions.
- services/: Database and business logic services.
- static/: Static serving files (in need for css and js).
- templates/: Rendered views (Views).
- utils/: Common helper functions.
- .env: Environment variables.
- app.py: Registers blueprints , loads environment variables , initializes DB and runs the app server.
-
Create a virtual environment
python -m venv .venv
-
Install dependencies
pip install -r requirements.txt
-
Install dependencies (Choose the
.venvinterpreter from your IDE panel.)
Firstly :
Secondly :
-
Run the app
flask run
-
Access homepage
May this project be the foundation of a strong and collaborative development journey 🔥.


