A website to manage shared resources locks using PHP and Angular 2.
Provide a way to manage limited resource access by creating an easy lock mechanism and a web dashboard.
- PHP part contains a REST webservice to manage the resource list. A single JSON file is used as persistance layer.
- Website is created using Angular 2. It provides a dashboard view and a resource details view.
- Gulp script is used to build and package the Web site
- Node.JS (npm/gulp)
- Gulp (build)
- PHP (server side shared management)
You only need 4 steps :
- Run "composer install" in the app folder.
- Run "npm install" in the source folder
- Edit the resource.service.ts to define the right URL of the webservice, for instance http://localhost/resources
- Run "gulp serve"
- copy the below listed folders:
- app
- dist
- vendor
- modify the app/config.json file
- modify the app/db.json file to define your resources
- dist should be the web site root directory
- that's all!