Coronatime is a COVID-19 statistics app that allows you to view worldwide and country-specific data. With features like login, logout, registration, email verification, and password reset, you can access the latest COVID-19 statistics with ease. You can also sort countries and search for specific information, all from one app.
-
Laravel@10.x - back-end framework
-
AlpineJs - Javascript framework
-
TailwindCss - CSS framework
1. First of all you need to clone Coronatime App repository from github:
git clone https://github.com/RedberryInternship/nikoloz-danelia-coronatime
2. Next step requires you to run composer install in order to install all the dependencies.
composer install
3. after you have installed all the PHP dependencies, it's time to install all the JS dependencies:
npm install
and also:
npm run dev
in order to build your JS/SaaS resources.
4. Now we need to set our env file. Go to the root of your project and execute this command.
cp .env.example .env
And now you should provide .env file all the necessary environment variables:
MYSQL:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=*
DB_USERNAME=*
DB_PASSWORD=*
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=*
MAIL_PASSWORD=*
MAIL_ENCRYPTION=ssl
MAIL_FROM_NAME=*
after setting up .env file, execute:
php artisan config:cache
in order to cache environment variables.
5. Now execute in the root of you project following:
php artisan key:generate
if you've completed getting started section, then migrating database if fairly simple process, just execute:
php artisan migrate
You can run Laravel's built-in development server by executing:
php artisan serve
Build js files:
npm run dev
it will watch JS files and on change it'll rebuild them, so you don't have to manually build them.
To fetch stats execute:
php artisan coronatime:fetch-covid-stats
Structure of database: