For development, you will only need Node.js installed on your environment.
Node is very easy to install & includes NPM. Run the following commands in command prompt/terminal after the installation procedure to make sure it installed correctly. It should display your version.
$ node --version
v0.10.24
$ npm --version
1.3.21
Just go on the official Node.js website & grab the installer.
Also, be sure to have git
available in your PATH, npm
might need it.
You will need to use Terminal. On OS X, you can find the default terminal in
/Applications/Utilities/Terminal.app
.
Please install Homebrew if it's not already.
When Homebrew is correctly installed, you should run
brew install node
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
You must have three command prompt/terminals open and run the db_api, UI, iot_api, all at once.
$ git clone https://github.com/evanliferock/I-Con-monitoring.git
First fill in your credentials in
/iot_api/src/connections/sql.js
and
/db_express_api/src/sql/db.js
.
Then perform the following commands in three different command prompt/terminals and run db_api, UI, iot_api, all at once as directed below:
$ cd db_express_api/src
$ npm install
$ npm start
$ cd iot_api/src
$ npm install
$ npm start
$ cd UI/src
$ npm install
$ npm start
Some packages usage might change so you should run npm prune
& npm install
often.
A common way to update is by doing
$ git pull
$ npm prune
$ npm install
To run those 3 commands at once you can enter
$ npm run pull
- SQL is used to manage the data held in our system.
- JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.
- React is used for easier user interface development.
- CSS is used for minor styling.
- IoT API: our own IoT API is used to communicate between physical gateways, our database, and display the information back to the user on the user interface.