This Progressive Web App calculate your departure time according to your worktime, arrivals and departures. It helps you maintain good habits with a positive hourly balance, or to raise a negative balance. Push notifications are sent once your working time is over. A service worker cache and fetch the cached files to provide an offline availability.
Once NodeJS installed:
- Install Gulp:
npm install gulp -g
- Open a terminal in your project root directory (containing the
package.json
file):npm install
- src/db_connect.php
- src/passwd.php
- Setup web push notifications: Generate a public/private key pair, then complete the file
src/keys.php
- Preprocess, minify and concatenate all css files in bundle.min.css :
gulp css
- Concatenate, uglify and pack all javascript files as bundle.min.js :
gulp js
- Re-generate the css/js files for production :
gulp build
- To display the outdated packages :
npm outdated
- To keep the dependencies up to date, simply run the command
npm update
.
- Run the command
npm audit fix
- Run
npm audit
and resolve manually the vulnerabilities left, if any.