README in English
This repository contains all server-side code for our project, organized into 4 main directories:
Flask-based API services currently running on the server. This includes all endpoints and business logic for our backend services.
An admin dashboard for server management. Features include:
- API monitoring
- Start/stop/restart functionality
- Server status overview
Note: Contains code used in the web repository as a submodule in the backend of the website.
(Legacy code) Contains:
- Database schema creation scripts
- Table definitions
- Query execution utilities
Note: This is mostly deprecated as the database and tables are now automatically created by the website (in Web repository).
To clone this repository, open your terminal in the desired directory and run:
git clone https://github.com/SEPAD-Project/Server-Side.gitThen, navigate to the repository directory:
cd Server-Side- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
.venv\Scripts\activate.bat
- Install required dependencies:
pip install -r requirements.txt
- Navigate to dashboard directory:
cd dashboard - Run control_server.py:
python control_server.py
- Open Control server page and login by go to http://localhost:800
- Run each api by click on start button in apis containers