Skip to content

Commit

Permalink
The vertx object was not instantiated because of the static key word.
Browse files Browse the repository at this point in the history
The template engine needs to be inside the start method
  • Loading branch information
gerardnico committed Jan 17, 2021
1 parent 4457caf commit 99194a9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ public static void main(String[] args) {
private static final String CLIENT_ID = "57cdaa1952a3f4ee3df8";
private static final String CLIENT_SECRET = "3155eafd33fc947e0fe9f44127055ce1fe876704";

// In order to use a template we first need to create an engine
private final HandlebarsTemplateEngine engine = HandlebarsTemplateEngine.create(vertx);

@Override
public void start() throws Exception {

// In order to use a template we first need to create an engine
final HandlebarsTemplateEngine engine = HandlebarsTemplateEngine.create(vertx);

// To simplify the development of the web components we use a Router to route all HTTP requests
// to organize our code in a reusable way.
final Router router = Router.router(vertx);
Expand Down

0 comments on commit 99194a9

Please sign in to comment.