Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.21 KB

Development.md

File metadata and controls

40 lines (23 loc) · 1.21 KB

Development quick start

Clone to your local directory to begin.

$ git clone https://github.com/amigocloud/modified-tripplanner.git
$ cd modeify

Installation

bin/install

This copies the configuration files into a deployment directory. On Macs this script also brew installs NodeJS and MongoDB.

Requirements for running

  • Node.js — Version 0.10 and up
  • MongoDB — Can set MONGODB_URL in deployment/env
  • OpenTripPlanner — Set otp host and port in deployment/config.yaml

Running

npm start

Run's the server in the background with automatic restarts using nodemon This watches the client and lib directories for changes and rebuilds and reloads the server accordingly. Logs are stored in server.log.

NOTE: Changes to the configuration files requires a manual restart. Just run npm start again.

npm stop

Kills the server and cleans up the .pid.

make build

Manually rebuilds the client assets.

Deployment Configuration

If you manage your configurations elsewhere, bin/set-deployment $DIRECTORY allows you to switch between deployments.