Mongo
Mongo
Prerequisites
The user must know how to connect to an Intel Edison and set up a wifi connection.
Basic Linus shell commands knowledge.
Mongo in Intel Edison
Instructions
First, set up a wifi connection using this command
root@edison:~# configure_edison --wifi
and following the on-screen instructions.Run the commands below to add these repositories and update.
To install MongoDB, we need to download the package that contains it and unpackage it. First, create a Mongo directory and change directory to it, to maintain our process more centralized.
Download the tgz file with the following command
create a binary folder and change to it, then unpack the file.
and we should see
Change directory to mongodb-linux-i686-2.6.8/bin with
Create a directory called data, this directory is where we are going to store all databases and collections that are created
Run
ongod --dbpath data/
an instance of mongo should be runnning connected to a default database called test.
Links
Mongo using Node.js
Gitbook on Frameworks/Node?
Status
mongo sucess
To do: Create a Gitbook on IoT Frameworks, Begin with Node to link Mongo and Node, create a restful api.
RESTful Service
To demonstrate how Mongo works, in this demo the user will create a simple restful web app with Node.js, Express and Mongo, to do in Node Gitbook and then replicate it here, same practice.
Last updated