Skip to content

aschwabe/dropwizard-expense-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and test instructions:

Environment:

  • Eclipse IDE
  • Dropwizard + Maven
  • MySQL

Requirements:

  • A working MySQL
  • Credentials to remotely connect to a database

How to build:

  1. Clone this into a workspace (eclipse or other)

  2. Edit src/main/resources/test.yml i. Modify the database connection creds to point to any accessible mysql server ii. Modify the app settings: a. expenseTable (string) is the database table name of your choice b. maxRecords (integer) is the max number of records to display on "submitted expenses" c. defaultUserId (string) is a DEFAULT user Identifier for the expenses to be associated with assuming that authentication would be added to the app.

  3. Optionally change the server port (currently 8080)

  4. launch using Maven: mvn clean compile exec:java -e

  5. Open in browser at: Test the app here: http://localhost:8080/expenses/

    Monitor app health at: http://localhost:8080/admin/

    View API documentation/manually test API calls here: http://localhost:8080/swagger

Notes:

  • Upon first load, the app will check to see if it needs to create the database table
  • The app will cowardly refuse to start if the database is unreachable

About

A fairly simple coding challenge, aimed at backend-focused engineers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.9%
  • CSS 44.1%
  • Java 6.2%
  • HTML 2.8%