Portail de Quiz pour la HEIG-VD.
git clone [email protected]:yves-chevallier/chevallier.io.git
cd chevallier.io
cp .env.example .env
composer install
npm install
docker-compose up
php artisan key:generate
php artisan migrate:fresh --seed
In your .env
make sure that APP_DEBUG
is set to true
. To login with any user use the route /debug/login/{id}
.
Then you should configure your MySQL DB_CONNECTION=mysql
and your Pusher settings. You can get them by creating an account on pusher.com:
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
The cron allows task scheduling such as emitting an event when an activity is about to end. Artisan command will be called every minute.
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
You need more than one terminal...
First to start the Laravel development server:
php artisan serve
Then start the pusher replacement websocket server:
php artisan websockets:serve
Eventually the Vue development server:
npm run watch
To debug websocket messages, you can go to :
http://127.0.0.1:8000/laravel-websockets
php artisan migrate:fresh --seed
Still have some issues on npm
on the server side...
npm run production
tar cvzf dist.tar.gz public/css/app.css public/css/app.css.map public/js/app.js public/js/app.js.LICENSE.txt public/js/app.js.map
scp dist.tar.gz ...
sudo apt install php-yaml php-zip
https://www.switch.ch/aai/guides/sp/installation/index.html?os=ubuntu20