The first thing we can do is download MongoDB Community Server from https://MongoDBdb.com. When you have it installed, navigate to the chapter-18/starships directory from our GitHub repository and let's try to get it started:
npm install
mkdir -p data/MongoDB
mongod --dbpath data/MongoDB
If you have everything installed correctly, you should see a flurry of notification messages, ending with one that says something similar to [initandlisten] waiting for connections on port 27017. If all does not go as planned, spend some time to ensure your installation is working properly. A useful tool is MongoDB Compass, a GUI tool for connecting to MongoDB. Be sure to check permissions and that the appropriate ports are open, as we'll use port 27017 (MongoDB's default port) for connections.
This chapter will be a lab exercise to take our starship game to the next level. Here's what we'll be building:
Then, we&apos...