Create a Simple Connection With Vertx, MongoDB and Groovy
-
You have to install VertX 3.3.3, Groovy, and Mongo DB.
-
Create a simple groovy script
-
Include the next imports
- Add the configuration for Mongo DB.
- Add some data in the script.
- Use the mongo methods for save and find the data.
- Please, run the script with vertx run script.groovy
- You need to consult your Mongo Server