A sample project of using Laravel and Vue.js and grab data from https://api.covid19api.com/summary
- PHP 8
- Composer 2.0.8
- Laravel 8.20.1
- npm 6.14.9
- Clone this repository...
https://github.com/AbdullahAlajmi/laravel-vue-covid19.git
- Install composer dependencies
composer install
- Database migration (Create database table) (IMPORTANT: sqlite extension must be uncomment in php.ini)
php artisan migrate
- Install npm packages (ignore the warning for fsevents package as it's an optional)
npm install --no-optional
- Compile Assets (Mix)
npm run dev
- Run the server
php artisan serve
- for the first time the database will be empty, click on "Update Data (Covid19 API)" button to fill up the data from a public API.
- update countries data
- some countries are missing, for example Greenland (GL). Try to add a new country data using the country code (ISO alpha-2)
MIT :)