#Gerommouv animations (2.5 months internship)
http://127.0.0.1:8000//presentation => then click image "Activités" http://127.0.0.1:8000//member/create
as Admin : ( for testing => email : admin@gmail.com || password : secret )
general installation :
git clone git@github.com:echayotte/geromouv-animations.git
!! important
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]
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