INACTIVE - http://mzl.la/ghe-archive - To infinity and beyond. The backend API.
Перейти к файлу
Chris Van f04618564b add flatDB.update 2013-12-15 02:10:42 -08:00
data/game THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
lib move utils to lib/utils 2013-12-14 16:01:08 -08:00
views/game use more lodash goodness 2013-12-15 02:09:59 -08:00
.gitignore add data/ to .gitignore 2013-12-14 16:01:08 -08:00
README.md THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
app.js THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
db.js add flatDB.update 2013-12-15 02:10:42 -08:00
package.json use lodash 2013-12-14 16:01:08 -08:00
server.js THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
settings.js THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
settings_local.js THIS IS GALAXY-API 2013-12-13 19:09:34 -08:00
settings_local.js.dist THIS IS GALAXY-API 2013-12-13 19:09:34 -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'