- Laravel 11
- React 18
- Nodejs (only for Dev)
- PHP 8.2 or later
- MySQL / MariaDB
git clone https://github.com/HOAIAN2/college-quiz-app.git
- Run
install.sh
to generate .env file and install libs for both server and client. - Edit Enviroment variables in .env file.
DB_CONNECTION=mariadb
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=college-quiz-app
DB_USERNAME=admin
DB_PASSWORD=123456789
- Remember to update your correct timezone
APP_TIMEZONE=UTC
- 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
Run Deploy file to build and compress all necessary files to app.tar.gz
./deploy.sh
Run composer install
to continue development or just use this everytime.
./build && ./deploy.sh && composer install
Full review (Vietnamese) at Youtube: https://www.youtube.com/watch?v=Xkss5f4N0vw