INACTIVE - http://mzl.la/ghe-archive - To infinity and beyond. The backend API.
Перейти к файлу
Matt Basta 910d8a8236 Wire up auth view 2013-12-18 08:26:10 -08:00
data/game THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
lib record all games a user has played 2013-12-18 02:55:17 -08:00
views Wire up auth view 2013-12-18 08:26:10 -08:00
.gitignore leaderboard goodness and user abstraction 2013-12-18 02:55:16 -08:00
README.md THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
app.js add user/login view 2013-12-18 02:55:17 -08:00
db.js move utils to lib/utils 2013-12-14 16:01:08 -08:00
game.html leaderboard goodness and user abstraction 2013-12-18 02:55:16 -08:00
package.json leaderboard goodness and user abstraction 2013-12-18 02:55:16 -08:00
server.js THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
settings.js leaderboard goodness and user abstraction 2013-12-18 02:55:16 -08:00
settings_local.js THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
settings_local.js.dist leaderboard goodness and user abstraction 2013-12-18 02:55:16 -08:00

README.md

galaxy-api

Here lives the API that is consumed by the front-end interface for cvan/galaxy.

Installation

  • npm install
  • cp settings_local.js.dist settings_local.js
  • nodemon app.js

Sample Usage

Game Submission

curl -X POST 'http://localhost:5000/game/submit' -d 'name=Mario Bros&app_url=http://mariobro.se&icons=128&screenshots=yes'

Game Details

curl 'http://localhost:5000/game/mario-bros/detail'

Webapp

Manifest JSON (Firefox)

curl 'http://localhost:5000/game/mario-bros/manifest'

Manifest Launcher

curl 'http://localhost:5000/launch.html?https://mariobro.se'