Git Product home page Git Product logo

norta-data's Introduction

NORTA Data

The intent of this project is to make it easy to use up to date information from the New Orleans RTA. It exposes json endpoints for the GTFS data and a websocket endpoint for the realtime information.

I hope to create client libraries for Android and ios.

Documentation

There is currently no documentation for this API but I am working on documentation for the underlying GTFS and Realtime data.

Hosted

There is currently a realtime map hosted here:

http://norta.simst.im/?routes[]=12&routes[]=11&stale=true

Deploying

I'm hoping to support a hosted server but still checking on the legality of it. You can deploy your own server if you have an API key from NORTA.

This is a Phoenix application so you can mostly follow their guide except for a few tweaks. I'm going to lay out the steps here:

  • Make sure you have a heroku account and a working install of heroku toolbelt
  • Create your heroku app (you can put a name after create for a custom name heroku create myappnam --buildpack.....)
$ heroku create --buildpack "https://github.com/HashNuke/heroku-buildpack-elixir.git"
Creating mysterious-meadow-6277... done, stack is cedar-14
Buildpack set. Next release on mysterious-meadow-6277 will use https://github.com/HashNuke/heroku-buildpack-elixir.git.
https://mysterious-meadow-6277.herokuapp.com/ | https://git.heroku.com/mysterious-meadow-6277.git
Git remote heroku added
  • Add the phoeinix static buildpack:
$ heroku buildpacks:add https://github.com/gjaldon/heroku-buildpack-phoenix-static.git
Buildpack added. Next release on mysterious-meadow-6277 will use:
  1. https://github.com/HashNuke/heroku-buildpack-elixir.git
  2. https://github.com/gjaldon/heroku-buildpack-phoenix-static.git
Run `git push heroku master` to create a new release using these buildpacks.
  • Add the postgres hobby addon
 heroku addons:create heroku-postgresql:hobby-dev
  • Generate a secret
$ mix phoenix.gen.secret
xvafzY4y01jYuzLm3ecJqo008dVnU3CN4f+MamNd1Zue4pXvfvUjbiXT8akaIF53
  • set SECRET_KEY_BASE config variable
heroku config:set SECRET_KEY_BASE="xvafzY4y01jYuzLm3ecJqo008dVnU3CN4f+MamNd1Zue4pXvfvUjbiXT8akaIF53"
  • Set your hostname to the heroku hostname you created in step 1
heroku config:set HOSTNAME="mysterious-meadow-6277"
  • Set your norta API key
heroku config:set NORTA_API_KEY="myapikey123"
  • Run the database migrations
heroku run mix ecto.migrate

norta-data's People

Contributors

bhelx 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.