- Nodejs (only for Dev)
- PHP 8.1 or later
- MySQL / MariaDB
git clone https://github.com/HOAIAN2/college-quiz-app.git
- Run
prepare.sh
to generate .env file and install libs for server and client. - Edit Enviroment variables in .env file.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=college-quiz-app
DB_USERNAME=admin
DB_PASSWORD=123456789
- Create databse, seed data
php artisan migrate
php artisan db:seed
-
Seed databse (Change root account in databse/seeders/UserSeeder.php)
-
Build
Some free hosting like infinityfree, 000webhost only allow GET, POST method so you can config override method when call api on client
VITE_DEV_PORT=3000
VITE_DEV_SERVER_PORT=8000
VITE_OVERRIDE_HTTP_METHOD=true
./deploy.sh