Skip to content

daeglin/KoronaHra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corona Game

Quick setup

Prerequisites

  • node
  • Ansible
  • Docker

Database

  • cd build/ansible
  • make run-develop
  • inspect MongoDB with connection to localhost:8001

Backend

  • cd backend
  • npm i
  • npm start

Frontend

  • cd frontend
  • npm i
  • npm start
  • open browser at http://localhost:4200/

Deployment

Prerequisites

  • Ansible
  • access to dev.swehq.com

Steps

  • cd build/ansible
  • make deploy-dev or make deploy-prod

Tests

Update test file

If you are making changes in the simualtion model or stats, and want to update the json file frontend/src/app/game/game/data-czechia-real.json based on same mitigation definition and randomness params, just run the following code wherever (e.g.) in the app.component.ts and check the console for the report (if new simulation differs, its state is printed out).

import {validateGame} from 'src/app/services/validate';
import realData from 'src/app/game/pages/game/data-czechia-real.json';
const data = realData as any;
validateGame(data, false);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.7%
  • TypeScript 10.3%
  • HTML 9.4%
  • SCSS 5.1%
  • CSS 0.4%
  • Shell 0.1%