Skip to content

The Snake Lightweight Client 🎮 is a client for an online version of the famous snake arcade. Written on JS

License

Notifications You must be signed in to change notification settings

ivan1993spb/snake-lightweight-client

Repository files navigation

The Snake Lightweight Client

Build Status GitHub release license

The Snake Lightweight Client is a client for the Snake-Server. See a working instance here - https://snakeonline.xyz

The source code of the server: https://github.com/ivan1993spb/snake-server

Demo

Client screenshot

Try it out!

Project setup

yarn install

Compiles and hot-reloads for development

yarn run serve

To disable mocks in development mode use environment variables before yarn run serve

export SNAKE_SERVER_ENABLE_MOCK=false
export SNAKE_SERVER_PORT=8080
export SNAKE_SERVER_HOST=localhost

To make it work with a https instance of the server:

export SNAKE_SERVER_ENABLE_MOCK=false
export SNAKE_SERVER_HOST=localhost
export SNAKE_SERVER_WEB_SCHEME=https
export SNAKE_SERVER_SOCKET_SCHEME=wss
export SNAKE_SERVER_PORT=443

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Run your unit tests

yarn run test:unit

License

See LICENSE.

About

The Snake Lightweight Client 🎮 is a client for an online version of the famous snake arcade. Written on JS

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages