As base example was taken Django project, which was modified to work with FlightPHP. This is a simple project, which has a login system, access control system, and some modules. This project was created for educational purposes and main goal was to show how to use FlightPHP. This projects allows to manage students, courses, and marks. Original project can be found here: https://github.com/krmu/djangouni
Web: Main project, all addresses Marks: Marks module. Editing, adding, grade history Courses: Courses module. Editing, deleting, adding Students: Students module. Editing, deleting, adding
Currently system uses SQLite database, which is located in /app/djanogunidb.db. There are also sql files for creating tables and inserting data, which can be found in /app/djanogunidb.sql
System has such parts students, courses, marks. Since an already prepared DB was used, courses are called modules in English. The system has a login system, which is based on the darbinieki_user table.
The system has a simple access control system.
Employees have two accesses: staff and admin.
staff: Can do everything except manage employees admin: Can do everything
admin : password teacher : teacher
- Clone the repository
- Run
composer install
- Run on server you need. For example
php -S localhost:8000
from folder /public
/public/ - public folder
/css/ - css files
/js/ - js files
/img/ - images
index.php - main file
/app/ - main application folder
/pages/ - pages folder
config.php - configuration file
routes.php - routes file
helpers.php - helper functions
middlewares.php - middleware functions