GithubHelp home page GithubHelp logo

cloud-robots / bridge Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 3.22 MB

A cloud service to exchange data with Robots

Home Page: https://cloud-robots.github.io/

License: MIT License

Shell 52.15% Batchfile 40.26% Java 7.59%
java microservices cloud cloud-computing robotics ev3dev ev3 ev3-robot mindstorms lejos

bridge's Introduction

bridge's People

Contributors

jabrena avatar juan-medina avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

bridge's Issues

Define API

Define the API for the bridge service

  • Add Swagger UI
  • Create simple YAML
  • Complete YAML

Define Client API

API Proposal:

class MyExample(){

  private Bridge bridge;

  private void newsTopic(final Message message){
    System.out.println(message.getSubscriber() + " has news: " + message.getText());
  }

  private void helloTopic(final Message message){
    bridge.publish("hello", "hello " + message.getSubscriber());
  }

  public void run(){
    bridge = BrigeBuilder.connect("http://localhost:8080")
       .subscribe("news", this::newsTopic)
       .subscribe("hello", this::helloTopic)
       .options(Options.discardOwnMessages, true)                   
       .options(Options.refresh, 1500)
       .options(Options.logMessages, true)
       .build();

    bridge.publish("hello", "hello world");
  }
}

Implement Server

Create the server based on system test

  • Implement PUT /subscribe/
  • Implement GET /subscribe/{subscriber}/
  • Implement DELETE /subscribe/{subscriber}/
  • Implement PUT /publish/{topic}/
  • Implement GET /messages/{subscriber}/

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.