-
Notifications
You must be signed in to change notification settings - Fork 29
Setting up the environment for development
-
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 -
Now clone the project to your local machine using:
git clone
from Tayra repository -
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.
-
Set up the Test Environment:
' * ' denotes port prefix. For example, if your mongod port is 27017, port prefix would be 270A 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" -
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. -
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.