Logging data in a local database
In the previous recipe, we saw how to access data on the Galileo board. It would be even better if we could get this data and then store it in a database on your computer, to be processed, sent, or displayed. This is exactly what we are going to do in this recipe.
Getting ready
To store data on our computer, we are going to use the powerful MongoDB database, which is commonly used with Node.js. You can find more information about MongoDB at https://www.mongodb.org/.
To install it on your computer, follow the instructions here:
https://www.mongodb.org/downloads
Then, after following the instructions on the MongoDB website, you will be able to run it on your computer from a terminal. If you are using Windows, use a terminal such as PuTTY. This is what you will see:
Once you can see this on your computer, you are ready to use this recipe, as MongoDB is now running on your computer. Do not close this terminal window as you need to have MongoDB running.