Wep application for the UK Fluids Network
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
storage
tests
.gitattributes
.gitignore
.htaccess
LICENSE
README.md
artisan
composer.json
composer.lock
contributors.txt
gulpfile.js
package.json
phpunit.xml
server.php

README.md

UK Fluids Network website

Installation

The project depends on a series of node packages

composer install
npm install

The main CSS code is compiled from SASS using gulp

gulp

Mailqueue

Laravel provides job queues, which we use to handle sending email.

To monitor the queue worker we use supervisor, a process monitor for linux. Supervisor will run different processes and automatically restart them if they stop for any readon. The command to run the queue worker is:

artisan queue:work --sleep=3 --tries=5 --daemon

Since daemon queue workers are long-lived processes, they will not pick up changes in your code without being restarted. To do so:

php artisan queue:restart

Cronjobs

artisan schedule:run command, which is in charge of laravel's task scheduler, allows cronjob like behaviour with php. All the commands that the scheduler will run are specified in app/Console/Kernel.php, under the schedule() function. A single cronjob entry is required:

* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

Built with

  • Laravel 5 - The PHP framework used
  • Angular.js - The JavaScript framework used for retrieving and displaying data
  • jQuery 2 - The JavaScript framework used for minor modifications in the GUI
  • Gulp - SASS compiler
  • Bootstrap 3 - Front end framework
  • npm - Dependency Management