Skip to content

Badonix/Coronatime

Repository files navigation

Coronatime


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.

Table of Contents

Prerequisites

  • PHP@7.2 and up
  • MYSQL@8 and up
  • npm@6 and up
  • composer@2 and up

Tech Stack

Getting Started

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=*

EMAIL

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
Now, you should be good to go!

Migration

if you've completed getting started section, then migrating database if fairly simple process, just execute:

php artisan migrate

Development

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

Resources

Structure of database:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages