Thursday, February 25, 2016

Server Side Implementation

In order to implement the server side logic following technology stacks are used:

1. Hosting Environment - AWS EC2 Linux Instance
2. MQTT Broker - Mosquitto
3. Server - Node.js
4. Webservice Framework  - Express
5. WebApp Front End - Angular + Bootstrap
6. Database - MongoDB
6. MQTT Client - PAHO javascript client

1. Getting Started with AWS


Follow the step by step procedure as listed in the below link
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html

2. MQTT Broker


2a. Connect to EC2 instance using putty.

2b. Execute the below commands to set up the mosquitto broker in EC2 instance

sudo wget http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-6/home:oojah:mqtt.repo -O /etc/yum.repos.d/home:oojah:mqtt.repo 
sudo yum install mosquitto mosquitto-pub mosquitto-sub
  sudo service mosquitto start

3. Node Server

3a. npm is the package management service for node.js. Execute the below command to install nodejs and npm  on the ec2-instance

sudo yum install nodejs npm --enablerepo=epel
3b. Follow to below tutorial to get up and running with the MEAN stack development


No comments:

Post a Comment