Simple NodeJS application.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
controllers
data Initial commit. Jan 28, 2016
models
public
routes
.gitignore Initial commit. Jan 28, 2016
README.MD
app.js
loadpoints.js
package.json

README.MD

Simple Geo Application

Sample NodeJS application to test geo features of MongoDB, using LeafletJS, Open Streep Maps and MapBox.

Instructions

What you'll need:

  • MongoDB
  • NodeJS
  • Express

Creating the geodatabase

Simply run the "loadpoints.js" script:

$ node loadpoints.js

It assumes your mongodb is up and running on the default port:

mongodb://localhost:27017/sampledb

Running the application

In the application directory:

$ npm install
$ node app.js

Open your browser in [http://localhost:3000/][http://localhost:3000/].

That's it!