Earthquake-Dashboard
This repository showing visualization about earthquake in animation
Requirement
- php 7 or latest
- mysql (latest)
- nodejs (latest)
- npm (latest)
- composer
Install Frontend
- Install nodejs and npm
- in frontend-dashboardgempa give command
npm i
ornpm install
- to run frontend just type and enter in frontend-dashboardgempa
npm start
Install BackEnd
- Install php and mysql and composer
- in backend-dashboardgempa folder type and enter
composer install
and thencomposer update
- In backend-dashboardgempa folder, copy or just rename .env.example file as .env.
- In .env file set the config so it fit with you environtment especially this config
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
change DB_DATABASE=homestead
to 'DB_DATABASE=homestead' (don't forget to create earthquake database), then change DB_USERNAME=homestead
to DB_USERNAME="Your mysql username"
, the default mysql username is "root", then DB_PASSWORD=secret
to DB_PASSWORD={your mysql password}
, the default value for me is "". Make it suitable with your environtment.
- make database named
earthquake
in mysql - in backend-dashboardgempa folder type and enter
php artisan migrate
. It will create epicentrums table in "earthquake" database - in backend-dashboardgempa folder give command
php artisan db:seed
. If anything error or computer deadlock happen you can manually add data with epicentrums.sql to import to sql manually to table epicentrums. - To run backend just type and enter
php artisan serve