covid19 corona virus score application is a web application framework with expressive, elegant syntax and build with laravel 8. This is open source project under MIT License. That means its free and you can contribute to this open source project.
This application using various type of API. and Web Scraper to really work this application perfectly. Have lots of information. Interface is currently inspired from Worldometer.
Live Data Source: Worldometers
Data by date John Hopkins University & Pomber from github: John Hopkins - Pomber
Bangladesh District Wise Data source: dghs.gov.bd
Vaccine Tracker Data Source: The New Work Times
Get vaccine trial data from RAPS (Regulatory Affairs Professional Society). Specifically published by Jeff Craven: RAPS
Get therapeutics trial data from RAPS (Regulatory Affairs Professional Society). Specifically published by Jeff Craven: RAPS
USA Data Source: Worldometer
India Data Source: Get COVID-19 government reported data for a specific country
API for covid19: Corona Ninja
Project Framework
- Laravel 8
This Covid19 project has a few system requirements. You should ensure that your web server has the following minimum PHP version and extensions:
- PHP >= 7.3
- BCMath PHP Extension
- Ctype PHP Extension
- Fileinfo PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- fopen_url_allow = true
- composer
clone this project
https://github.com/mahbuburriad/covid19.git
Go to directory
app/providers/AppServiceProvider.php
Comment this code with /* */
under boot() function
/*
$basic_settings = Settings::all();
unset($settings);
$settings = array();
foreach ($basic_settings as $bSet) {
$settings[$bSet['settings_key']] = $bSet['settings_value'];
}
View::share('settings', $settings);
*/
Open Terminal and install the composer
composer install
make an .env file
cp .env.example .env
Open .env file and modify the database name, username and password
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
generate Key
php artisan key:generate
Storage Link
php artisan storage:link
dump autoload the composer
composer dump-autoload
Database Migration
php artisan migrate --seed
Go to directory
app/providers/AppServiceProvider.php
uncomment this code under boot()
function
$basic_settings = Settings::all();
unset($settings);
$settings = array();
foreach ($basic_settings as $bSet) {
$settings[$bSet['settings_key']] = $bSet['settings_value'];
}
View::share('settings', $settings);
Now serve this project
php artisan serve
Now Grab all live data by run this url
- http://localhost:8000/dataGet/live
- http://localhost:8000/dataGet/continent
- http://localhost:8000/dataGet/therapeutics
- http://localhost:8000/dataGet/vaccine
- http://localhost:8000/dataGet/yesterday
- http://localhost:8000/dataInsert
- http://localhost:8000/stateInsert
- http://localhost:8000/vaccineInsert
- http://localhost:8000/dataGet/indiaData
- http://localhost:8000/dataGet/usaData
- http://localhost:8000/sitemap
Now Check that all data implemented
- You need always update data so best way is use cron job for automatically scrap data time to time.
For any type of problem comment here or knock me on mail
- Mail: mahbubur.riad@gmail.com
- website: https://mahbuburriad.com
- covid19 website: https://covid19.mahbuburriad.com
Thank you for considering contributing to the Covid19 Project. You can contribute this project whatever need and update.
In order to ensure that the covid19 project member is welcoming to all
If you discover a security vulnerability within covid19 project, please send an e-mail to Mahbubur Riad via mahbubur.riad@gmail.com. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.