Skip to content

shan-du/FloorPlanMap

 
 

Repository files navigation

Introduction

Dude, you know Bob? Where does he sit? Well, let me DSP that for you.

Current API End Points

Employees

Model

{ firstName: String, lastName: String, jobTitle: String, phoneExtension: String, emailAddress: String, spotlightUrl: String, slug: String # unique and generated 'firstName + "-" + lastName' location: { POI } }

Routes

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/

Points of Interest

Model

{ type: String, coordinates: String }

Routes

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}

Search

Model

{ "results": [ { "score": 1.1, "obj": { } } ], "items": 1 }

Routes

READ - GET /api/search/{term}

Development

  1. Install GIT

  2. Get everything from GIT

    git clone https://github.com/PureHacks/FloorPlanMap.git

  3. Install latest NodeJS

  4. Update npm (with GIT Bash or Cygwin if you are using Windows)

    npm update -g npm

  5. Install Grunt CLI for the project (under your project directory)

    npm install -g grunt-cli

  6. Install Grunt for the project

    npm install

  7. Run grunt, which will initialize less, browserify, express

    grunt workon

  8. Local page URL: http://localhost:3000/

Checkout Wiki for Details

To run type grunt workon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.7%
  • CSS 16.3%
  • HTML 6.0%