Skip to content

Instantly share code, notes, and snippets.

@k33g
Created May 3, 2018 06:45
Show Gist options
  • Save k33g/7bac8d90a474dc115bb29cb23474d157 to your computer and use it in GitHub Desktop.
Save k33g/7bac8d90a474dc115bb29cb23474d157 to your computer and use it in GitHub Desktop.
RedPipe 1er contact
package garden.bots;
import net.redpipe.engine.core.Server;
import io.vertx.core.json.JsonObject;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
JsonObject config = new JsonObject();
config.put("http_port", 8080);
new Server().start(config, StaticResource.class, HelloResource.class)
.subscribe(
v -> System.out.println("RedPipe server is started"),
Throwable::printStackTrace
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment