- Claudio Cardinale
- Giorgio Pea
- Create a mysql database and an user with write acces to it
- Import
DB/dbschema.sql - Set server address on
WEBSITE/resources/views/includes/config.jadeWEBSITE/resources/assets/js/app.js
- Create
config.phpfile using example onconfigdirectory
- type
npm install - type
gulp
Note: all actions must be executed in the WEBSITE directory
type gulp serve
Note: all actions must be executed in the WEBSITE directory
- Set
WEBSITE/publicas the root directory - Give the permissions to php to execute files in
WEBSITE(so not onlyWEBSITE/public)
DB/db.sqlmysql export with schema and dataWEBSITE/public/- 'Compiled' html files
js/app.jsour js and libraries joined together in one js fileimgall images slitted indynamicandstaticcss/app-less.csscss 'compiled' by less, it contains only libraries (like bootstrap)css/app-sass.csscss 'compiled' by sass, it contains only our cssfilesfiles downloadable in the siteapiphp backend for db
WEBSITE/config/config.phpmysql parameters configuration, example configuration onWEBSITE/config/config.example.phpWEBSITE/resources/assets/jsit contains ES6 source files written by us, without any library. They are compiled together, with libraries, intoapp.js.lessit contains less files, used only to import css libraries. They are compiled together, with libraries, intoapp-less.css.sassit contains sass files written by us, without any libraries. They are compiled together intoapp-sass.css.
phpit contains useful php files imported by API and other useful scripts likefakeData.phpviewsit contains pug (ex jade) templates used to generate HTML, it is divided in include and public directories. Only public directory files are converted as single HTML pages. they are compiled intopublicdirectory ashtmlfiles
All libraries are npm libraries
- babel-preset-es2015
- babel-preset-react
- gulp-print
- gulp-rename
- gulp-shell
- jquery-stickytabs
- laravel-elixir
- laravel-elixir-pug
- query-string
- vue-resource
- It is projected to be used with apache, since we use
.httaccess