stephen-knutter / pdxlivebus

Realtime Trimet map. Live update of all active vehicles

Home Page:http://pdxlivebus.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDXLiveBus

The PDXLiveBus app built in React and React Native. It uses Express, and Socket.io. Server located in the server folder.

http://i.imgur.com/PLh6pce.jpg

React Native

The React Native version is inside of the native folder.

Running it

Run yarn or npm install in the web, server, and native directories.

Server

You'll need an API Key from here http://developer.trimet.org/appid/registration/

Then you'll need to create a .env file in the server folder and add. But you'll replace API_KEY_HERE with the api key from Trimet.

TRIMET_KEY=API_KEY_HERE

Then run npm start inside the server to spin up a server at localhost:3001.

Apps

In either the web or native directories run npm start. The apps should kick off and connect to your running server

About

Realtime Trimet map. Live update of all active vehicles

http://pdxlivebus.com


Languages

Language:JavaScript 76.6%Language:HTML 17.2%Language:CSS 6.1%