Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.45 KB

readme.md

File metadata and controls

38 lines (24 loc) · 1.45 KB

A Lumen/React app for playing checkers against an AI.

This was built to work in conjunction with the prediction app and can easily be run in a Kubernetes cluster here. The web app communicates to the prediction app within the cluster. From the web UI you can create new training sessions, view previous training sessions, and play against the current AI.

After setting up the Kubernetes cluster, you can set a domain value in the values.yaml file under web. Point that domain to localhost on your device and navigate there in your browser.

Development

Developing in the Kubernetes cluster requires adding development_volume value to your values.yaml file in the imparaai/checkers-kubernetes repo an example of which can be seen in the web section of the values.example.yaml file.

Setup

Exec into the web container in the Kubernetes cluster and you should be dumped onto /var/www. From here, run the following:

composer install
yarn install

This will build the PHP and JS build dependencies.

To build:

npm run build

Build on any file changes:

npm run watch

To test:

npm run test