Skip to content

trynmaps/opentransit-map

Repository files navigation

Getting Started

Check out our welcome doc: http://bit.ly/opentransit-onboarding.

Tech stack

Web app

Landing page

Middleware Services

Backend Services

Database

  • Cassandra (Data Models in Orion)

Infrastructure

  • Everything except the DB is dockerized and running on a Google Cloud Container
  • Cassandra is in a 3-node cluster of N1s on Google Cloud
  • Currently we only have Prod and Local environments

Wiki

Also read our wiki to learn about how we store data.

Running the app

Prerequisites:

If running tryn-react with the backend running locally:

  • Have tryn-api running and ensure that it's in the same parent directory as this repo.
  • go to envEndpoints.json and set the USE_PROD_ENDPOINT flag to false.

If running tryn-react using the production API (recommended - do this unless you're working on the backend):

  • Clone tryn-api to the same parent directory as this repo.
  • Checkout the prod branch in tryn-api.

Once you're ready:

  1. Ensure you have the config.json file in the src directory. You can get this from the shared files section of our Slack channel.
  2. Run yarn.
  3. OPTIONAL: Install Watchman via brew install watchman.
  4. Run yarn run relay or (if you installed Watchman) yarn run relay --watch
  5. Run yarn start.

Deployment

TODO