Introduction

This guide will show you how to setup and run your fist Edge App on a local machine, and connect to MQTT on a local Futurehome Smarthub.

We will be creating a new project based on a template on Github.

Requirements

Setup new project template

Download template

  1. First we will clone the template from Github. Go to https://github.com/thingsplex/ThingsPlexServiceTemplate and copy the link.

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/80aa7dd4-5874-49d3-9973-56c08825e5bd/Untitled.png

  2. Clone the repository using git clone to your desired location, for example:

    cd ~/development/futurehome/
    git clone <https://github.com/thingsplex/ThingsPlexServiceTemplate.git>
    # cd into template folder
    cd ThingsPlexServiceTemplate
    

Generate new project

In the ThingsPlexServiceTemplate directory you will find a script called [generate-app.sh](<http://generate-app.sh>) . We will use this script to generate a new app. We will call the new app for demo_app

./generate-app.sh demo_app

The script will now generate a new project directory with all the files we need.