Writing your first app
Now that you have everything installed and confirmed that it's all working, you can write your first quick app that will use both Node and MongoDB. This will prove that your environment is good to go, and you're ready to get started. In addition, it will give you a brief taste of the world of Node and MongoDB development! Don't worry if a lot of the following is confusing or just doesn't make sense to you—it will all be made clear throughout the rest of the book!
Step one is to create a folder that you can work from while creating files and installing Node modules. From your home or development folder, execute the following commands:
$ mkdir testapp $ cd testapp
The code
The first thing you need to do before you write any ...
Get Web Development with MongoDB and Node.js now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.