Skip to content

This project is created upon a task requested in an interview with CSS.

Notifications You must be signed in to change notification settings

alqahtani/covid19-laravel-vue

Repository files navigation

COVID19 Tracker App - Laravel & Vue.js

This app is built upon a task requested during a job interview.

Task Description and Requirements

  1. Create database for Countries contains all possible countries with Covid19 cases

  2. build api link called /api/fill_data when user hit it, it will get the data from the following api link and insert or update(if country exist) all countries data in the database. https://coronavirus-19-api.herokuapp.com/countries

  3. Build 4 pages:

    • add country with covid19 details page
    • edit ... page
    • view ... page
    • list all data as world map with country covid cases details on mouse hover.
    • Below the map there should be a table includes the data and actions column (edit, delete)
  4. Feel free to use any template or native bootstrap

  5. Mandatory tech-stack: Laravel & vuejs

Installation

  1. clone this repo to your local machine: git clone [email protected]:alqahtani/covid19-laravel-vue.git
  2. change directory to the project: cd covid19-laravel-vue
  3. install the dependencies using composer: composer install
  4. install the node packages needed: npm install
  5. create a mysql database with name "covid19_laravel_vue"
  6. copy the .env.example with name .env here is the command: cp .env.example .env
  7. run this php artisan command to generate a key for the app: php artisan key:generate
  8. run the migration: php artisan migrate
  9. serve the app using this command: php artisan serve
  10. on another terminal run this command to process queue jobs as they dispatched.

App running and usage

  1. head to http://127.0.0.1:8000
  2. the glope map will appear and there is no data yet
  3. press on update DB button above the table headers on the right (Make sure that you run step 10 on installation)
  4. now the application is filling the database with data coming from the API using Laravle queues. you can refresh the page and you'll see the countries as they added to DB.
  5. If you want to update the DB data again you can simply click update DB

Technologies used

Screenshots

About

This project is created upon a task requested in an interview with CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published