- 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.jade
WEBSITE/resources/assets/js/app.js
- Create
config.php
file using example onconfig
directory
- 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/public
as the root directory - Give the permissions to php to execute files in
WEBSITE
(so not onlyWEBSITE/public
)
DB/db.sql
mysql export with schema and dataWEBSITE/public/
- 'Compiled' html files
js/app.js
our js and libraries joined together in one js fileimg
all images slitted indynamic
andstatic
css/app-less.css
css 'compiled' by less, it contains only libraries (like bootstrap)css/app-sass.css
css 'compiled' by sass, it contains only our cssfiles
files downloadable in the siteapi
php backend for db
WEBSITE/config/config.php
mysql parameters configuration, example configuration onWEBSITE/config/config.example.php
WEBSITE/resources/
assets/
js
it contains ES6 source files written by us, without any library. They are compiled together, with libraries, intoapp.js
.less
it contains less files, used only to import css libraries. They are compiled together, with libraries, intoapp-less.css
.sass
it contains sass files written by us, without any libraries. They are compiled together intoapp-sass.css
.
php
it contains useful php files imported by API and other useful scripts likefakeData.php
views
it 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 intopublic
directory ashtml
files
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