Skip to content

h0l0gram/ttn-microclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Things Network microclient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 90.3%
  • JavaScript 9.7%