зеркало из https://github.com/mozilla/galaxy-api.git
INACTIVE - http://mzl.la/ghe-archive - To infinity and beyond. The backend API.
910d8a8236 | ||
---|---|---|
data/game | ||
lib | ||
views | ||
.gitignore | ||
README.md | ||
app.js | ||
db.js | ||
game.html | ||
package.json | ||
server.js | ||
settings.js | ||
settings_local.js | ||
settings_local.js.dist |
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'