Skip to content

Latest commit

 

History

History

chat-getting-started-dropwizard

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ChatGettingStarted

How to start the ChatGettingStarted application

  1. Run mvn clean verify to build your application
  2. Run the liquibase migrate with java -jar target/chat-getting-started-dropwizard-0.0.1-SNAPSHOT.jar db migrate config.yml
  3. Start application with java -jar target/chat-getting-started-dropwizard-0.0.1-SNAPSHOT.jar server config.yml
  4. To check that your application is running, check http://localhost:9090/swagger-ui.html

Note: The Swagger UI does not support the 'Subscription Query' further on in the assignment, as Swagger does not support streaming results. Issuing a regular curl operation, or something along those lines, is the recommended way to check the Subscription Query.

Note 2: If you are on Intellij IDEA, you can also use the command-request.http and query-request.http files in this project to send requests directly from your IDE. Several defaults have been provided, but feel free to play around here!

H2 Console

The application has the 'H2 Console' configured, so you can peek into the database's contents.

Visit: http://localhost:9090/h2-console
Enter JDBC URL: jdbc:h2:mem:testdb
Leave other values to defaults and click 'connect'.

Health Check

To see your applications health, visit http://localhost:9091/healthcheck