Skip to content

Modern Website to manage recourse in a university!

Notifications You must be signed in to change notification settings

nemo256/DashRecours

Repository files navigation

Dashboard recours

Website to manage recourses in a university

Azure DevOps coverage Packagist PHP Version Support (specify version) PHP-MySQL

Dashboard recours is a website that can manage recourses concerning IT department in a univerity!

demo

Installation

PHP version 5 is required

  1. Run this to clone this repo and make ./script command executable:
$ git clone https://github.com/nemo256/DashRecours
$ cd DashRecours
$ chmod +x script.sh
  1. This will generate the database with its tables and populate them:
$ ./script.sh -u [MYSQL-username] -p [MYSQL-password] -d [DB-NAME]
  1. Launch a local server on PORT 3000 (run as sudo for superuser privileges):
$ sudo php -S localhost:3000
  1. For more informations run:
$ ./script.sh -h

Don't have mysql password? (default username = root)

NOTE: if [DB-NAME] is not specified 'PFE' is the default value!

$ sudo ./script.sh -d [DB-NAME]

Usage

  1. A Student can add, update, remove a recourse.
  2. A Teacher can validate, refuse a recourse,
  3. An Administrator can manage Students and Teachers.

Issues you might run into

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.