MongoDB with Java and Python

In order to work on project MongoDB with Java, there are a few setups

  • Install MongoDB

 

  • Make sure Maven is installed

 

It turns out that I stick with mongo + python so I can leverage the opportunity to sharpen my python skills. 

From here on, I will keep accumulating mongo/python related cases

I have a mongodb dump, and I can restore it.

	
  • To create a dump:
  • Go the directory where the "dump" exists
  • Issue command "mongorestore dump"
  • It shall restore the databse
  • I have a grade information in .json format

    cat grades.json | python -m json.tool | more
    

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.