This is a Laravel/Vue project using PrimeVue and vue-chartjs for the UI.
The data comes from https://www.sumo-api.com/.
composer install
npm ci
npm run build
cp .env.example .env
php artisan key:generateAdjust .env according to your local database setup (e.g. if not using sail).
sail up -dAt 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=UserSeederThis will create a user called admin@example.org, password admin.
php artisan migrateIn one terminal:
php artisan serveIn another:
npm run devBrowse to http://127.0.0.1:8000/ and you should see a page without any data.
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.
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
