Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Setting up the environment for development

Bhagyashree-Mandora edited this page Apr 19, 2013 · 1 revision
  1. Install the following softwares:
    a. MongoDB
    b. JDK 1.6 (minimum)
    c. Groovy 2.0.5
    d. Gradle 1.2
    e. Git 1.8.0
    f. Preferred IDE- Eclipse/Idea

  2. Now clone the project to your local machine using:
    git clone
    from Tayra repository

  3. Once the project is cloned on your local machine, perform the following to make it IDE compatible:
    From command-line, go to the cloned directory and run:
       gradle cleanEclipse eclipse
            OR
       gradle cleanIdea idea

    This sets up your workspace. It automatically downloads the required jars and libraries, resolves dependencies and sets up the classpath afresh.

  4. Set up the Test Environment:
    ' * ' denotes port prefix. For example, if your mongod port is 27017, port prefix would be 270

    A secure replset (on ports: *17- primary, *18, *19)
    A secure standalone (on port: *20)
    An unsecure replset (on ports: *50- primary, *51)
    An unsecure standalone (on port: *52)

    Secure Mongods must have an admin user in the admin db with:
    username: "admin"
    password: "admin"

  5. Build the project:
    From the working directory on the command-line, run:
       gradle clean build -DportPrefix=<portPrefix>
    to clean and build the project. Build step automatically invokes the unit tests, smoke tests and consolidates their results. Here, you can specify the port prefix you have used while starting the mongods with -DportPrefix option.

  6. Once build is successful, you are ready to start your journey and make changes on the way. To make your job easier with the code, you may download and install IDE plugins for groovy, Junit, git.
    You can send us a pull request if you wish to contribute to the code base.

Clone this wiki locally