Coder Social home page Coder Social logo

otp.js's Introduction

otp.js is a lightweight library for modular development of modern OpenTripPlanner front-end interfaces.

The core of the library is a collection of data models and views (lib/), written using backbone.js, that encapsulate OTP API requests and responses (OTP API version 0.10). Also included is a simple web client (client/) that shows how otp.js can be used to create a functional OTP front-end.

otp.js uses Component for dependency and build process management.

To get started with otp.js and the sample web client:

  1. Clone the otp.js repo to your local machine using git clone https://github.com/conveyal/otp.js.git

  2. Install npm if needed. In the otp.js project directory, run npm install to install Component and set up the development environment (this in configured in package.json).

  3. Run make, which invokes Component to download any required dependencies and package them together with the local otp.js code (a copy of the packaged code is put in client/build).

  4. Update the default configuration in client/otp.config.js to point to your OTP backend.

  5. Deploy the client to the web by copying the client/ directory to your web server.

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.