Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Latest commit

 

History

History
48 lines (24 loc) · 1.41 KB

README.md

File metadata and controls

48 lines (24 loc) · 1.41 KB

The Things Network microclient

This is a really tiny client for The Things Network mainly built as an excuse to try out now's mind-blowing service.

It is completely self-contained: you can host it locally or deploy it to a provider and it will just work on its own with zero-configuration.

Prerequisites

  • Node.JS (use a new-ish version, like 5.9 or higher, I tested with 6.2 only)
  • An account and application in the Dashboard.

Getting Started

  • Clone this repository and open a terminal in that directory

  • Install dependencies:

      $ npm install
    
  • Run it:

      $ npm start
    
  • Browse to localhost:8080

Deploying

If you want to release this onto the big wide interwebs, you can use any node.js hosting provider out there, but I did this only to try out now's insanely awesome one, so here's what I suggest.

  • First make sure you have installed now globally:

      $ npm install -g now
    
  • Login to now:

      $ now --login 
    
  • Deploy:

      $ now
    
  • Profit! 🚀

Credits

Based on Hylke Visser's socket.io example and The Things Network SDK for Node.js.