https://github.com/feroult/traffic-flow
Traffic Flow Demo
https://github.com/feroult/traffic-flow
Last synced: 10 months ago
JSON representation
Traffic Flow Demo
- Host: GitHub
- URL: https://github.com/feroult/traffic-flow
- Owner: feroult
- Created: 2017-05-10T00:25:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T14:25:34.000Z (over 7 years ago)
- Last Synced: 2025-07-18T06:55:44.763Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 268 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Traffic Flow Demo
Traffic Flow Cloud Dataflow/Apache Beam demo.
### Config
Create a Google Cloud project. Enable PubSub, BigQuery and Cloud Dataflow APIs.
__Simulator__
1) Grab your __keyfile.json__ with PubSub publish permissions and put it in: __simulator/src__
2) Copy the file __simulator/src/config/config-template.js__ to __simulator/src/config/config.js__ and change the settings for your project.
3) Run the simulator server inside the __src__ folder: `./sim-server.js`
__Dataflow Pipeline__
1) Build: `./gradlew fatJar`
2) Publish the pipeline: customize and run `./deploy.sh`
__Visualizer__
1) Serve the folder `visualizer` using any webserver.
2) Open it in your browser.
### Contents
* Simulator
* Dataflow Pipeline
* Map visualizer
### Credits
* [Luan Nico](https://github.com/luanpotter)
* [Matheus Martins](https://github.com/matheusmr13)