Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cvan/moz-tanx
tanx game with mobile gamepad support (with server and client on same origin)
https://github.com/cvan/moz-tanx
Last synced: 7 days ago
JSON representation
tanx game with mobile gamepad support (with server and client on same origin)
- Host: GitHub
- URL: https://github.com/cvan/moz-tanx
- Owner: cvan
- License: bsd-3-clause
- Created: 2015-02-25T06:55:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-04T16:45:32.000Z (almost 10 years ago)
- Last Synced: 2025-01-29T18:02:44.566Z (13 days ago)
- Language: JavaScript
- Homepage: http://mzl.la/tanx
- Size: 172 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# moz-tanx
[tanx](http://tanx.playcanvas.com/) game with mobile gamepad support
## Installation
Install the Node dependencies:
npm install
## Development
All of the game client code is static (see [__`cvan/tanx-client`__](https://github.com/cvan/tanx-client)). The HTTP and WebSocket servers live in [__`cvan/tanx-1`__](https://github.com/cvan/tanx-1/tree/gamepad).
Although a real server like Nginx is likely a better candidate for static content, all content here is served from a simple Node server to simplify deployment (and development).
To serve the site from the simple server:
npm run dev
### Advanced
To run the server on a different port, set the `MOZ_TANX_HOST` and `MOZ_TANX_PORT` environment variables.
## Deployment
In production, the server is run instantiated like so:
NODE_ENVIRONMENT=production node app.js
Alias for local development:
npm run prod
To run the server à la Heroku:
foreman start web