This is a technical challenge for chooseshift.com
https://infinite-oasis-40111.herokuapp.com/
This project includes all features that a website needs to make a quiz maker app/website . including both website & API like a real project.
The project made by Laravel 5.8 for the backend framework and Vue.js + Vuex for frontend.
The project includes the following features:
- Admin Login / Logout
- Create / Remove / Edit > Quizzes ( Admin )
- Create / Remove / Edit > Dimensions ( Admin )
- Create / Remove / Edit > Questions for each Quiz ( Admin )
- Create / Remove / Edit > Explanations for each Result of Quizzes ( Admin )
- User ability to participate in quizzes ( User )
- User ability to get a result according to it's answers for each quiz ( User )
- Check Answers For Each Participant ( Admin )
- run command :
composer install
- run command :
npm install
- create two databases for
Web Service
&Testing Environment
- change
.env.example
File to.env
and setup .env database information - change
.env.example
File to.env.testing
and setup .env.testing database information for Unit & Feature Tests - run command :
php artisan key:generate
- run command :
php artisan migrate
- run command :
php artisan passport:install --force
- copy second
Client ID
andClient Secret
after running the previous command. - paste
Client ID
andClient Secret
to.env
and.env.testing
files. ( because we use these secret code for admin login request ) - run command :
php artisan db:seed
- run command :
npm rum watch
- run command :
php artisan serve
- open web server
Done !
- step1: create a new database for test
- step2: change
.env.example
File to.env.testing
and setup .env.testing database information for Unit & Feature Tests - run command :
phpunit