Dude, you know Bob? Where does he sit? Well, let me DSP that for you.
{ firstName: String, lastName: String, jobTitle: String, phoneExtension: String, emailAddress: String, spotlightUrl: String, slug: String # unique and generated 'firstName + "-" + lastName' location: { POI } }
CREATE - POST /api/employee/ with x-www-form-urlencode INDEX - GET /api/employee/ READ - GET /api/employee/{firstName-lastName} UPDATE - PUT /api/employee/{firstName-lastName} with x-www-form-urlencode DELETE - DELETE /api/employee/{firstName-lastName}
ASSIGN LOCATION - POST /api/employee/{firstName-lastName}/assign/{locationId} UNASSIGN LOCATION - POST /api/employee/{firstName-lastName}/unassign/
{ type: String, coordinates: String }
CREATE - POST /api/poi/ with x-www-form-urlencode READ - GET /api/poi/{id} UPDATE - PUT /api/poi/{id} with x-www-form-urlencode DELETE - DELETE /api/poi/{id}
{ "results": [ { "score": 1.1, "obj": { } } ], "items": 1 }
READ - GET /api/search/{term}
-
Install GIT
-
Get everything from GIT
git clone https://github.com/PureHacks/FloorPlanMap.git
-
Install latest NodeJS
-
Update npm (with GIT Bash or Cygwin if you are using Windows)
npm update -g npm
-
Install Grunt CLI for the project (under your project directory)
npm install -g grunt-cli
-
Install Grunt for the project
npm install
-
Run grunt, which will initialize less, browserify, express
grunt workon
-
Local page URL:
http://localhost:3000/
To run type grunt workon