MediaComem / comem-geoinf-2016-mongodb-gis

MongoDB GIS exercises

Home Page:https://comem-geoinf-2016-mongodb-gis.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comem+ GeoInf 2016 MongoDB GIS

MongoDB GIS exercises

Getting started

  • Install Git

  • Install Node.js 6.x

  • Install and run MongoDB 3.x

  • Clone this repository:

    git clone https://github.com/MediaComem/comem-geoinf-2016-mongodb-gis.git
    
  • Open a terminal in the repository and run the following commands:

    npm install
    npm start
    
  • Visit http://localhost:3000 in your browser.

    Note: This application requires the browser to support ECMAScript 6.

Solving the exercises

Once the application is running, it will tell you which files to edit to complete the exercises.

To avoid having to manually restart the server every time you make a change, install a process monitor like nodemon. Open a terminal in the repository and run the following commands (you may have to use sudo on Mac OS X for the npm install -g command):

npm install -g nodemon
DEBUG=mongodb-gis:* nodemon bin/www

When running like this, the application will automatically restart when you edit a JavaScript file.

Configuration

  • The application runs on http://localhost:3000 by default. Use the $PORT environment variable to specify another port to bind to.

  • The application connects to the following database by default: mongodb://localhost:27017/mongodb-gis. Use the $MONGODB_URI or $DATABASE_URL environment variable to specify another connection URL.

About

MongoDB GIS exercises

https://comem-geoinf-2016-mongodb-gis.herokuapp.com/


Languages

Language:JavaScript 92.2%Language:Pug 6.7%Language:CSS 0.6%Language:Stylus 0.5%