Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivan1993spb/snake-lightweight-client
The Snake Lightweight Client 🎮 is a client for an online version of the famous snake arcade. Written on JS
https://github.com/ivan1993spb/snake-lightweight-client
arcade game multiplayer online snake vue websocket
Last synced: about 2 months ago
JSON representation
The Snake Lightweight Client 🎮 is a client for an online version of the famous snake arcade. Written on JS
- Host: GitHub
- URL: https://github.com/ivan1993spb/snake-lightweight-client
- Owner: ivan1993spb
- License: mit
- Created: 2019-01-02T20:41:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:54:28.000Z (about 2 years ago)
- Last Synced: 2024-07-30T16:59:14.585Z (5 months ago)
- Topics: arcade, game, multiplayer, online, snake, vue, websocket
- Language: JavaScript
- Homepage: http://snakeonline.xyz
- Size: 2.61 MB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Snake Lightweight Client
[![Build Status](https://travis-ci.org/ivan1993spb/snake-lightweight-client.svg?branch=master)](https://travis-ci.org/ivan1993spb/snake-lightweight-client) [![GitHub release](https://img.shields.io/github/release/ivan1993spb/snake-lightweight-client.svg)](https://github.com/ivan1993spb/snake-lightweight-client/releases/latest) [![license](https://img.shields.io/github/license/ivan1993spb/snake-lightweight-client.svg)](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](demo.gif)](https://snakeonline.xyz)
[Try it out!](https://snakeonline.xyz)
## 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`
```bash
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:
```bash
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](LICENSE).