INACTIVE - http://mzl.la/ghe-archive - To infinity and beyond. The backend API.
Перейти к файлу
Tay Yang Shun f281bece8f Modified README for new game submission and game detail format 2014-03-05 18:56:11 +08:00
lib Changed icons key to icon 2014-03-05 18:56:11 +08:00
scripts Made .dist parameters version, updated default parameters 2014-02-27 08:47:07 -08:00
static Bust host.html on each load 2013-12-20 14:31:35 -08:00
views Changed icons key to icon 2014-03-05 18:56:11 +08:00
.gitignore Moved db-prefill parameters to an external .json file and added it to the .gitignore file 2014-02-25 23:13:16 -08:00
README.md Modified README for new game submission and game detail format 2014-03-05 18:56:11 +08:00
app.js Merge pull request #96 from soedar/featured 2014-02-27 00:26:54 +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 Style fixes 2014-02-24 10:04:58 -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

Stories in Ready

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=Nutty Ninjas&app_url=http://nuttyninjas.com/&icons=http://png-4.findicons.com/files/icons/2297/super_mario/256/paper_mario.png&videos=%5B%22http://www.youtube.com/embed/4kvT0dywaF8%22,%22http://www.youtube.com/embed/1Sow2O8D9Ok%22%5D&screenshots=%5B%22http://www.digitaltrends.com/wp-content/uploads/2011/02/nintendo-new-super-mario-bros-ds-art-screenshot.jpg%22,%22http://splitkick.com/wp-content/uploads/2013/01/newsuper2img.jpg%22,%22http://www.mariowiki.com/images/f/fc/SuperMarioBrosArtwork2.jpg%22,%22http://www.digitaltrends.com/wp-content/uploads/2011/02/nintendo-new-super-mario-bros-ds-art-screenshot.jpg%22,%22http://splitkick.com/wp-content/uploads/2013/01/newsuper2img.jpg%22,%22http://www.mariowiki.com/images/f/fc/SuperMarioBrosArtwork2.jpg%22,%22http://www.digitaltrends.com/wp-content/uploads/2011/02/nintendo-new-super-mario-bros-ds-art-screenshot.jpg%22,%22http://splitkick.com/wp-content/uploads/2013/01/newsuper2img.jpg%22,%22http://www.mariowiki.com/images/f/fc/SuperMarioBrosArtwork2.jpg%22%5D&artwork_background=background.jpg&developer_name=Yang Shun&developer_url=http://yangshun.im/&description=Nutty+Ninjas+is+a+real-time+shooter+that+brings+the+experience+of+social+multiplayer+gaming+to+a+whole+new+level%3B+it+is+a+console-style+game+that+can+be+played+anywhere+and+anytime%2C+simply+with+your+computer+and+mobile+devices.+Multiple+players+can+join+a+common+gameplay+screen+just+by+using+their+mobile+devices%2C+and+control+their+ninja+character+to+unleash+dangerous+weapons+at+fellow+players!&genre=action&privacy_policy_url=http://una-org.github.io/demos.html'

Game Details

curl 'http://localhost:5000/game/nutty-ninjas/detail'