Skip to content

Setup Guide

Dustin F edited this page Nov 2, 2017 · 3 revisions

Prerequisites

  • Install PyCharm or another IDE of your choice (but PyCharm is used in this guide)
  • Download and install MongoDB, please use the latest MSI for that

Connecting your IDE with MongoDB

  • Follow these instructions for setting up MongoDb with IntelliJ/PyCharm
  • Open your IDE and checkout the project SharkPython
  • You can start a local Mongo server with running the mongod.exe (Programs/MongoDB/Server/3.4/bin/mongod.exe)

Testing and Inspecting the database

  • Now it's time to run some tests, start with the simple TestMain class and run it as a Unittest
  • Now try the TestMongoDb class, which calls some CRUD methods and the MongoHelper
  • After successfully running the TestMongoDb class, you can inspect the new created documents semantic_tags and knowledge_base of the local MongoDb database
  • All tests green? If so, you also run the test in the TestCommunication class