Website to manage recourses in a university
Dashboard recours is a website that can manage recourses concerning IT department in a univerity!
PHP
version 5 is required
- Run this to clone this repo and make
./script
command executable:
$ git clone https://github.com/nemo256/DashRecours
$ cd DashRecours
$ chmod +x script.sh
- This will generate the database with its tables and populate them:
$ ./script.sh -u [MYSQL-username] -p [MYSQL-password] -d [DB-NAME]
- Launch a local server on PORT 3000 (run as
sudo
for superuser privileges):
$ sudo php -S localhost:3000
- For more informations run:
$ ./script.sh -h
NOTE: if [DB-NAME] is not specified 'PFE' is the default value!
$ sudo ./script.sh -d [DB-NAME]
- A
Student
can add, update, remove a recourse. - A
Teacher
can validate, refuse a recourse, - An
Administrator
can manageStudents
andTeachers
.
For linux users that may have to change ownership of this project for files and images to be uploaded correctly!
$ sudo chown -R www-data:www-data [PATH-TO-DIR]/DashRecours
Please make sure you have mysql running on your computer before running (./script.sh):
$ mysql -u [USERNAME] -p[PASSWORD]
$ mysql --help # If any problem occures running the command above.