http://127.0.0.1:8000/board/create/1 //add a board on a comic
http://127.0.0.1:8000/pages/edit // create areas on a board
http://127.0.0.1:8000/pages/mapping //testing sound on areas'board
general installation :
git clone git@github.com:echayotte/Projet_EyeTracking.git
git checkout dev
composer install
npm install
npm audit //should be good now
database creation :
Then create a DB in your phpMyAdmin
environment creation :
cp .env.example .env
# change info in .env [DB_DATABASE=changeHere, DB_USERNAME=changeHere, DB_PASSWORD=changeHere]
add sources files to access :
cp -r storage/sources/ storage/app
mv storage/app/sources storage/app/public
laravel's site generation :
php artisan key:generate
php artisan migrate --seed
php artisan storage:link
launch the server ( # and watching files )
php artisan serve
npm run dev
npm run watch
If you have the problem below : ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
You need to follow this steps :
-
sudo apt-get install libpng-dev
-
npm install
It might worked now ! If not try this : -
sudo add-apt-repository "deb http://mirrors.kernel.org/ubuntu/ xenial main"
-
sudo apt-get update
-
sudo apt-get install libpng12-dev
-
npm install
-
npm run dev
If your npm run dev works, but any npm run watch won't work , try this : BrowserSync/browser-sync#224
If you can't acces your database, even if your .env and everything is right, maybe laravel doesn't load your .env.
If so, try php artisan config:cache
- make sure you have the latest DB and your .env is set up correctly.
- run
php artisan storage:link
- if your terminal says it already exists, delete the storage folder in ./public (/!\ not ./storage) and run the command again.
@TDB