Coder Social home page Coder Social logo

swimos / traffic Goto Github PK

View Code? Open in Web Editor NEW
27.0 7.0 8.0 246 KB

Massively real-time traffic streaming application

Home Page: https://traffic.swim.ai

License: Apache License 2.0

Java 40.88% HTML 1.54% TypeScript 54.70% JavaScript 2.18% Shell 0.49% Dockerfile 0.20%
stream-processing streaming stateful concurrency concurrent-programming actor-model actorsystem real-time realtime open-source

traffic's Introduction

Traffic

See Traffic in action.

Prerequisites

  • Install JDK 11+.

    • Ensure that your JAVA_HOME environment variable is pointed to your Java installation location.
    • Ensure that your PATH includes $JAVA_HOME.
  • Install Node.js.

    • Confirm that npm was installed during the Node.js installation.

Run

Windows

Install the Windows Subsystem for Linux.

Execute the command ./run.sh from a console pointed to the application's home directory. This will start a Swim server, seeded with the application's logic, on port 9001.

 user@machine:~$ ./run.sh

*nix

Execute the command ./run.sh from a console pointed to the application's home directory. This will start a Swim server, seeded with the application's logic, on port 9001.

 user@machine:~$ ./run.sh

View the UI

Open the following URL on your browser: http://localhost:9001.

Run as a Fabric

Run two Swim instances on your local machine to distribute the applications Web Agents between the two processes.

# Build the UI
server $ ./build.sh

# Start the first fabric node in one terminal window:
server $ ./gradlew run -Dswim.config.resource=server-a.recon

# Start the second fabric node in another terminal window:
server $ ./gradlew run -Dswim.config.resource=server-b.recon

When both processes are up and running, you can point your browser at either http://localhost:9008 (Server A) or http://localhost:9009 (Server B). You will see a live view of all Web Agents, regardless of which server you point your browser at. Swim transparently demultiplexes links opened by external clients, and routes them to the appropriate server in the fabric.

traffic's People

Contributors

ajay-gov avatar brohitbrose avatar c9r avatar crista2019 avatar ctrinh avatar freyadyu avatar jzucker-ness avatar scottswim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

traffic's Issues

Gauges not redrawing correctly

Look at these examples of gauges not drawing correctly.
Browser: Safari
Machine: Mac 14" M1 Chip

Problem is in full screen mode
image

Seems ok not in full screen
image

Enhance run.sh to fail with clear error if npm not installed

User Story
As a developer I want run.sh to fail if npm is not installed or fails rather than just continue along.

Acceptance Criteria

  1. Fail if any command fails instead of blindly continuing
  2. Specifically check for NPM install and NPM working and give clear error message

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.