In this step we are going to add several features to our project:
- Create a server and initialize some static data in it.
- Connect the client to the server.
So let’s start by creating some
Mongo collections which will be used to store our data.Mongo collections need to be available in both client and server in order to share data, so we will declare our collections in a folder named lib under the project’s root (lib/collections.js).