INACTIVE - http://mzl.la/ghe-archive - To infinity and beyond. The backend API.
Перейти к файлу
soedar 0910d17e63 Added POST, PUT and DELETE endpoint for featured (Fixes #40) 2014-02-21 17:28:46 +08:00
lib Added POST, PUT and DELETE endpoint for featured (Fixes #40) 2014-02-21 17:28:46 +08:00
scripts Added sample usage for promiseMap, converted remaining uses of request.post to use postPromise, and made more style fixes 2014-02-11 13:14:38 -08:00
static Bust host.html on each load 2013-12-20 14:31:35 -08:00
views Added POST, PUT and DELETE endpoint for featured (Fixes #40) 2014-02-21 17:28:46 +08:00
.gitignore WIP client services 2013-12-19 16:39:02 -08:00
README.md remove manifest (fixes #77) 2014-02-09 11:20:03 -08:00
app.js Added POST, PUT and DELETE endpoint for featured (Fixes #40) 2014-02-21 17:28:46 +08:00
db.js Remove flatfile from db.js (#31) 2014-02-08 17:35:02 -08:00
game.html Fix game stub URL 2013-12-20 12:23:32 -08:00
package.json Added persona-faker as a dev dependency so that it can be launched using a script 2014-02-09 09:15:06 -08:00
server_http.js use name/version from package.json when serving server 2014-02-12 18:05:48 -08:00
server_ws.js fix auth import 2014-02-07 21:42:40 -05:00
settings.js Added persona-faker as a dev dependency so that it can be launched using a script 2014-02-09 09:15:06 -08:00
settings_local.js.dist set DEBUG=true for default settings 2014-02-04 22:00:08 -08:00

README.md

galaxy-api

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

Installation

# Install redis via homebrew
brew install redis
# Install node dependencies
npm install
# Copy local configuration into place
cp settings_local.js.dist settings_local.js
# Start the server
npm start

If you'd like to run the server for development, consider using nodemon instead:

npm install nodemon -g
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&videos=yes'

Game Details

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