Old Moshi is a web application built using Flask and Supabase. This project is structured to support different user roles such as admin, academic, teacher, and parent.
old_moshi_secondary/ │ ├── app/ │ ├── init.py │ ├── config.py │ ├── models/ │ │ └── init.py │ ├── static/ │ │ ├── css/ │ │ ├── js/ │ │ └── images/ │ ├── templates/ │ ├── utils/ │ │ ├── init.py │ │ └── helpers.py │ └── views/ │ ├── init.py │ ├── admin.py │ ├── academic.py │ ├── teacher.py │ └── parent.py │ ├── tests/ │ └── init.py │ ├── venv/ ├── .env ├── .gitignore ├── requirements.txt └── run.py
-
Clone the repository:
git clone <repository-url> cd Old-Moshi
-
Create a virtual environment and activate it:
python -m venv env source env/Scripts/activate # On Windows source env/bin/activate # On Unix or MacOS
-
Install the dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.env
file in the root directory and add your Supabase URL and Key:SUPABASE_URL=<your-supabase-url> SUPABASE_KEY=<your-supabase-key>
-
Run the application:
flask run
The application configuration is managed in the Config
class. You can modify the configuration settings as needed.
The application uses Flask blueprints to organize the code for different user roles:
This project is licensed under the MIT License.