Demonstration code for interacting with MongoDB Using Java
Copyright (C) 2016 David S. Read
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/
For information Dave's MongoDB educational materials: https://www.monead.com/nosql/ For information on MongoDB: https://www.mongodb.com/
The project is setup to run using Apache Ant.
-
Import the sample honeypot data described at [https://monead.com/nosql/]
-
Make sure that MongoDB is running on localhost port 27017 (the default)
-
Open a terminal and change your working direcory to the project home directory containing the build.xml file
-
Type the command:
ant run
-
Open a terminal and change your working direcory to the project home directory containing the build.xml file
-
Type the command:
ant javadoc
-
Open a terminal and change your working directory to the project home directory containing the build.xml file
-
Type the command:
ant test
-
To view the test results use your browser to open the file: generated/reports/unit-test/index.html
-
To view the code coverage results use your browser to open file: generated/reports/cobertura/index.html