Skip to content

A web frontend for display snake bot matches and tournaments

Notifications You must be signed in to change notification settings

cygni/snakebot-webclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b89afc0 · Sep 23, 2019
Nov 15, 2016
Jul 21, 2017
Nov 15, 2016
May 22, 2019
Nov 15, 2016
Sep 30, 2016
Nov 2, 2016
May 22, 2019
Sep 23, 2016
Mar 23, 2017
May 22, 2019
May 22, 2019
May 22, 2019
Mar 23, 2017
Sep 23, 2019
Jul 1, 2016
Jun 12, 2016
Oct 5, 2016

Repository files navigation

#Cygni SnakeBot WebClient Build Status

This repository contains the source code for the SnakeBot web client. The application communicates with a snakebot game server using a websocket.

System requirements

Run locally

After cloning the repository, cd into the root path and restore all dependencies using npm install:

> cd /path/to/snakebot-webclient
> npm install

The application can be configured to connect to a specified snake game server on http://:/events using the following command:

> npm start -- --server-host <host> --server-port <port>

To run the application against a local game server listening on port 8080, you can use:

> npm run local

Build application

To build application for production, run

> npm run build -- --server-host <host>

The minified output will be copied to dist/bundle.js.

Docker

To build Docker image:

> docker build -t snake-web-client .

To run:

> docker run -it --rm --name snake-web-client -p 8090:8090 snake-web-client

About

A web frontend for display snake bot matches and tournaments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published