- [java 8] (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- [apache maven 3.2+] (https://maven.apache.org/download.cgi?Preferred=ftp://mirror.reverse.net/pub/apache/)
- Installed and running [mongoDB 3.x] (https://www.mongodb.org/downloads). Mongo db should be running on port localhost:27017
- Clone the git repo
- Go the directory that contains the pom.xml file
- Run
mvn assembly:assembly
- This should create a file target/exercise-1.0-SNAPSHOT-jar-with-dependencies.jar
- Run
java -jar target/exercise-1.0-SNAPSHOT-jar-with-dependencies.jar
- This command will start a http server running on port 8000. Point a browser to http://localhost:8000/fashions.html
- Properties such as http port and MongoDB address are configurable in app.properties; but requires the app to be rebuild (step 3).