Coder Social home page Coder Social logo

map_center's Introduction

This is the client side of the NewsHour's Vote 2012 Map Center.

Documentation: http://vote-2012-map-center.readthedocs.org/

Project Dependencies

This project requires the following software:

Once installed, run the following command from this project's root directory:

npm install

This will install the requisite packages from the Node Package Manager.

The "grunt" build tool is required to build the project. You can check if it is already installed by typing:

grunt --version

If not, you may install it globally by running the following command:

npm install -g grunt

Building the Project

Issue the following command to build the required source files:

grunt

Alternatively, you may build a development version of the code, which creates unminified JavaScript for easier debugging:

grunt dev

Running the Services

The standalone map application will function correctly when accessed locally over the file:// protocol--simply open the frontend/dist/index.html file in a web browser.

In order to excersize the network functionality, the files in frontent/dist must be served over a network protocol. Run the web server of your choice from that directory. The backend component is a Node.js service, which can be run from the backend directory with the following command:

node server.js

Serving the Application in Production

By default, the service will run on port #8000 of the IP address 127.0.0.1. These locations can be overridden by defining the NODE_PORT and NODE_HOST environmental variables, respectively.

After defining one or both of these parameters, re-build the project and re-start the service.

map_center's People

Contributors

dcv avatar jugglinmike avatar myersjustinc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.