Skip to content

REST API made with Sails.js to manage resources inside an amusement park. Should be used with the ng-yetplaygo (https://github.com/TheAlexRamirez/ngyetplaygo) Angular 2 application as client

Notifications You must be signed in to change notification settings

TheAlexRamirez/yetplaygo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yetplaygo-api

YetPlaygo is a RESTful API made in Sails that should be used with the ng-yetplaygo angular 2 application.

Yetplaygo is an admin-like tool for amusement parks.

Requirements:

  • MongoDB > v. 3.4.2 . Make sure its running on port 27017

Usage

git clone https://github.com/TheAlexRamirez/yetplaygo-api
npm install
sails lift

When you start the application, Game and User objects are bootstrapped in MongoDB.

Users seeded:

Documentation:

Yetplaygo API routes are based on Sail's Blueprint so take a look of the shortcut or RESTful ways to access their methods and models. (Just consider that most of them are protected)

Models

  • Users. This represents the user that are going to use this tool. They can have admin or user role.
  • Games. This represents the amusements in the park, their properties are:
    • Name.
    • Duration.
    • Capacity.
  • Current Games. This is the representation of an ocurrence of a game, where users can jump in and enjoy the game. Their properties are:
    • Users. [Array of Users]
    • Game. [Game]
    • Starts at.
    • Ends at.

Technologies Involved:

  • JWT
  • SocketIO (Included in Sails)
  • MongoDB

TODO:

  • Full description/documentation of the custom/blueprint routes

About

REST API made with Sails.js to manage resources inside an amusement park. Should be used with the ng-yetplaygo (https://github.com/TheAlexRamirez/ngyetplaygo) Angular 2 application as client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published