This is a repo for mongodb takehome excercise
Following these the steps to run the code and verify the output
- install maven
brew install maven
- git clone the repo
git clone https://github.com/henryisyoung/mongodb-takehome.git
to your local machine cd
to the repo directory and runmvn clean compile package
to complie and package the program- Pipe a json file to java program and execute the coode. i.e
cat src/main/resources/test2.json | java -jar target/mongo-test-1.0-SNAPSHOT-jar-with-dependencies.jar
Unit tests are located in src/test/java/com/mongo/AppTest.java