Created
May 3, 2018 06:26
-
-
Save k33g/ade4149fa8eeef58c7deed9a4ecab9f5 to your computer and use it in GitHub Desktop.
RedPipe 1er contact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, 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