Skip to content

perrich/shared-resource-lock-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

shared-resource-lock-website

A website to manage shared resources locks using Symfony 4 and Angular 5.

Provide a way to manage limited resource access by creating an easy lock mechanism and a web dashboard.

Details

  • 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 5. It provides a dashboard view and a resource details view.

Prerequisites

  • Node.JS
    • Angular-cli (build/develop client side)
  • PHP 7.x (server side shared management)
    • Composer
    • Symfony 4

How to test it?

You only need 4 steps :

  1. Run "composer install" in the php folder.
  2. Run "npm install" in the angular folder
  3. Edit the angular/assets/config.json to set the right URLs of the webservice
  4. Run "php -S localhost:8000 -t public/" from php folder
  5. Run "ng serve --open" from angular folder

How to deploy?

  1. call ng -build
  2. copy the php folder to the production folder
  3. copy angular/dist contents to the public subfolder of the production folder
  4. edit bellow files:
    • public/assets/config.json to set the right URLs of the webservice
    • config/mailalert.yaml to define alert mail
  5. add .env.dist contents as environment variable
  6. public should be the web site root directory
  7. open the URL: http://yoursite.com/#configure to allow to configure the wanted resources
  8. that's all!

About

A website to manage shared resources locks using Symfony 4.x and Angular 5.x.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published