Skip to content

stuartmcgill/kimarite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a Laravel/Vue project using PrimeVue and vue-chartjs for the UI.

The data comes from https://www.sumo-api.com/.

Kimarite graph screenshot

Local development

Installation

composer install
npm ci
npm run build
cp .env.example .env
php artisan key:generate

Adjust .env according to your local database setup (e.g. if not using sail).

sail up -d

Admin user creation

At first the database will be empty. To populate the kimarite data you will need to be logged in as a Laravel user. To create a user on the development database you can run:

php artisan db:seed --class=UserSeeder

This will create a user called admin@example.org, password admin.

Laravel migrations

php artisan migrate

Running the app

In one terminal:

php artisan serve

In another:

npm run dev

Browse to http://127.0.0.1:8000/ and you should see a page without any data.

Copying the data from Sumo API

Go to http://127.0.0.1:8000/refresh and login (e.g. as the user you created earlier). Click 'Rebuild'. This will take some time (30 minutes) or so to rebuild the database.

After it's finished your local environment should look the same as the live site.

Production install

ssh ... @stuartmcgill.org
cd domains/sumo.stuartmcgill.org/kimarite
git fetch
# Replace tag with release number
git checkout 1.0.0
composer install --no-dev --optimize-autoloader
npm ci
npm run build
npm install --omit=dev

About

Graphs showing historical trends in kimarite (sumo winning techniques)

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors