This project for submission is built using Spring Boot on Java 8.
- Ensure appropriate db details(MySQL) is updated in application.properties
- Execute 'mvn package'
- Execute 'java -jar target/vatapp-0.0.1-SNAPSHOT.jar'
Note: Ensure 8080 port is free on machine where app is getting deployed. Also,the app auto-creates the db table on mysql and drops them , when brought down .
App URL : http://localhost:8080/default.html
The app is now addressing all the following mandatory tasks
- Saves expenses as entered to a database.
- Retrieves them for display on the page.
- New column is added to the table to display the VAT amount for each expense.
- README is updated with appropriate changes.
and also the extra credit task
- VAT is dynamically computed and shown to the user as and when amount field is entered (before they save the expense to the database)
Being the contest, more focus has been given to address the functional requirements from backend perspective and ensured fair coverage on the other aspects of structure , test ,etc.
Also for UI , the shared client code is reused but placed @ src/webapp directory now. The UI code changed for submission are expenses-content.html and expenses-controller.js under webapp/src/js. Due to gulpfile build issues on local, packed the above changes directly in codingtest.min.js @ webapp/static/js.
Kindly reach out via email , for more info or any issues in app usage.