Skip to content

MichaelVonB/recycle-java

Repository files navigation

recycle-java

This is the java client to use when participating in the Domain Modeling hands-on.

Starting your server

Start the application with your favorite runner:

  • ./gradlew bootRun
  • ./mvnw spring-boot:run
  • or whatever you see fit

This will start your server locally on port 8080

If you want a continuous build on code change, you can run these two commands in separate terminals:

  • ./gradlew build --continuous
  • ./gradlew bootRun

Setting up ngrok

Make sure you have ngrok configured correctly. If unsure, please visit https://dashboard.ngrok.com/get-started/your-authtoken

ngrok http 8080 should setup the tunnel. Copy the generated url from the commandline. You can also visit https://dashboard.ngrok.com/cloud-edge/endpoints to see the endpoints you are exposing.

Registering on the hands-on server

Go to https://domainmodelling.dev and start a session.

Add the url you got from ngrok as a client url when asked, and validate the connection.

You are now ready to start. Follow the instructions for the exercises.

Getting to green

Once you get to your first failing scenario (No fractions delivered), change MainController.java to return 0 instead of 1:

return ResponseEntity.ok(new EventMessage("todo", new PriceWasCalculated("123", 1, "EUR")));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages