Snacraft Client
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://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>