Coder Social home page Coder Social logo

hello-dropwizard's Introduction

Introduction

The Dropwizard Hello World application

Running The Application

To test the example application run the following commands.

  • To package the example run the following from the root dropwizard directory.

      mvn package
    
  • To run the server run.

      java -jar target/hello-dropwizard-1.0-SNAPSHOT.jar server example.yml
    
  • To hit the Hello World example (hit refresh a few times).

    http://localhost:8080/hello-world

    http://localhost:8080/hello-world?name=World

  • The healthcheck resource runs the health check class we wrote. You should see something like this:

    • deadlocks: OK
    • template: OK

Dev Environment Exercise (Please ignore)

Background

The company you work for is building a dropwizard Restful services. They have completed their first sprint of work and are ready to begin preparing to ship it. Being a DevOps genius, you know that it will be difficult to reproduce bugs and increase ownership if there's not an easy way to reliably run these services locally as you would in production. At the same time, you want to get some automation that can be reused in production.

Your Task

Your next task is to take the recently built hello-dropwizard service:

  • Read the documentation for the Hello Dropwizard service and test them to make sure they work as expected.
  • Once you understand their usage, use preferred tools and technology to create automation that stands up local dev environment of the stack.
  • You discuss with the engineers that in order for a service oriented architecture to work best, there will need to be some http routing in front of the services so that requests go to the right places. When the stack is deployed, accessing /hello should route to the hello-dropwizard/hello-world. Use technology and tools you know to implement this behavior.

Bonus (Optional)

  • If you haven't already, create an efficient docker image based on best practices for at least one service. Be prepared to explain why it's efficient.

Results

Make the dev environment automation available via a public github repo with any instructions on how to run your dev environment in an accompanying README.md file. Send it in and be prepared to discuss it.

hello-dropwizard's People

Contributors

andrea-politi avatar haroonzone avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.