https://github.com/ozlerhakan/mongodb-json-files/blob/master/datasets/restaurant.json
-
Write a script - python/golang to import the documents separated by newline into a mongo collection named "restaurant"
-
Write an implementation of the given interface which reads/writes data & write a main file which demonstrates this.
-
Write a command line interface which accepts command line arguments into the terminal which retreives data in golang(extra credit).
Following commands should work:
./runprogram find --type_of_food=Thai
--> returns name:postcode of the all the matching restaurants
./runprogram find --postcode=8FY
--> returns name:type_of_food of all matching restaurants
./runprogram count --type_of_food=Thai
--> returns count of all restarants matching criteria as above
- Code has to be pushed to your own github public repository
- Code should run on local mongo database without password/auth
- Code commits should have appropriate messages
- Use comments/Doc Line against each public function in Golang