O'Reilly logo

Real-time Web Application Development using Vert.x 2.0 by Tero Parviainen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing database integration for mind map management

We are now all set to integrate the existing database management features in mindmaps.js with MongoDB. Instead of using the JavaScript array from Chapter 2, Developing a Vert.x Web Application, the verticle will reach into the MongoDB database. All the mind maps will be stored in a collection named mindMaps in the database.

All the changes we make will be contained within mindmaps.js. Client-side code is not affected by these changes, and should function as before.

If you've written database access code before, you've probably used a direct API: a class or module with methods for finding, saving, and deleting things, and all the other operations one might do with a database. MongoDB also ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required