brandon-welsch / sample-node-mosca

Sample application using Node.JS Express and the MQTT server mosca

Home Page:https://sample-node-mosca.scalingo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Application with NodeJS and Mosca

A sample of this application is running at: https://node-mosca.is-easy-on-scalingo.com/

Running Locally

First, you need to have a working NodeJS environment:

https://nodejs.org/en/download/

NPM

This application uses npm to manage its dependencies. Install them with:

npm install

Execute

Web server

npm start

MQTT server

npm run start-tcp

Deploy via Git

Create an application on https://scalingo.com with a MongoDB and a TCP Gateway addon, then:

scalingo --app my-app git-setup
git push scalingo master

Then scale the TCP container:

scalingo -a my-app scale tcp:1

And that's it!

Deploy via One-Click

Deploy to Scalingo

Links

About

Sample application using Node.JS Express and the MQTT server mosca

https://sample-node-mosca.scalingo.io


Languages

Language:JavaScript 39.2%Language:Pug 34.4%Language:CSS 26.3%