Skip to content

🐍 🕹️ | This project is the client-side source from Snacraft game, a classical snake multiplayer game.

Notifications You must be signed in to change notification settings

dhiogoboza/snacraft-client

Repository files navigation

Snacraft Client

License: Apache-2.0 contributions welcome

This project is the client side source from Snacraft game. This game is a classical snake multiplayer game. It is available in the web and Google Play.

Dependencies

  • npm
  • python
  • google-cloud-sdk [optional]

Install NPM dependencies

After installing npm, install dependencies:

npm install

Running locally

Using google-cloud-sdk

dev_appserver.py dev-app.yaml --admin_port 9090

This command starts development server at localhost:8080.

Using python

It is also possible to use any other http server.

python3 -m http.server

Open the localhost URL with parameter server, for example:

http:https://localhost:8000?server=secret-reaches-61045.herokuapp.com

Deployment

Generate distribution files

npm run build

This command generates distribution files at dist folder.

Deploy to App Engine

gcloud app deploy app.yaml --project <PROJECT_ID>

Pictures