Created
May 3, 2018 06:45
-
-
Save k33g/7bac8d90a474dc115bb29cb23474d157 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, 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