A web-based School Management System built using Django for the backend and React for the frontend. Software Enginnering Final Project
Make sure you have the following tools and versions installed on your system:
- Bun: Required for installing and running frontend dependencies.
- Python 3.10 or higher: Needed to run the backend of the project.
- Git: Version control to clone the repository.
- MySQL or MariaDB: Required as the database for the backend.
Note: Additional dependencies might be needed depending on your OS and development environment.
To get started, clone the repository and navigate into the project directory:
git clone https://github.com/onlymikey/SIIAUButEpic.git
cd SIIAUButEpic
-
Create the database:
Open your MySQL or MariaDB client and create a new database called
siiau
:CREATE DATABASE siiau;
-
Configure database connection:
Make sure to update the database settings in the
settings.py
file to match your local MySQL or MariaDB configuration, including the database name, user, password, and host.The configuration file is located at:
backend/SIIAUButEpic/settings.py
-
Navigate to the backend directory:
cd backend
-
Create a virtual environment (requires Python 3.10 or higher):
python -m venv /path/to/new/virtual/environment
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On Linux:
source venv/bin/activate
-
-
Install dependencies:
pip install -r requirements.txt
-
Make migrations (if necessary):
python manage.py makemigrations
-
Apply migrations (make sure the database is active):
python manage.py migrate
-
Create an admin user:
python manage.py seed_admin
This will create an admin with the following credentials:
- Username:
admin
- Password:
securepassword
- Username:
-
Start the backend server:
python manage.py runserver
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
bun install
-
Configure backend connection (optional):
If necessary, modify the backend server IP in the
api.js
file:frontend/src/services/api.js
-
Start the frontend server:
bun run dev
This project uses parts of code generated by v0.dev by Vercel.
This project is licensed under the MIT License. See the LICENSE file for more details.