Get started with Evothings Studio in 60 seconds

This guide shows how to get started with developing mobile applications for the Internet of Things using Evothings Studio. Use your web development skills to code mobile apps in JavaScript and HTML that now have access to socket networking, BLE and iBeacon APIs.

Get started within minutes

It is easy to get started with mobile IoT application development using Evothings Studio. Here is what you need:

  • Some basic knowledge about JavaScript and HTML.
  • The Evothings Studio Workbench desktop application (get it with the Evothings Studio download).
  • The Evothings Viewer mobile application (get it from Apple App Store or Google Play).
  • A text editor (pick your favourite editor!)
  • Internet connectivity for your computer and mobile phone.

With the above setup, you have everything you need to get going with mobile app development for the Internet of Things, including APIs for sockets, BLE (Bluetooth Low Energy) and iBeacon. Furthermore, you get a very nice live reload functionality that boosts development time by a factor 5 or more (i.e the edit/build/test cycle takes seconds rather than up to a minute as with Android Studio or Xcode).

First time step-by-step guide

Here is a step-by-step guide to get you going, right from scratch:

  • Download Evothings Studio to your computer (the download contains Evothings Workbench, examples and documentation).
  • From the download page, also generate a Cloud Token and save it to the clipboard or somewhere else.
  • Install Evothings Viewer on your mobile device(s).
  • Start Evothings Workbench and under the Connect tab paste your Cloud Token and and get a connect key using the GET KEY button.
  • Launch Evothings Viewer on the phone, enter the connect key to hook up with your Workbench.
  • On your computer, click the RUN button on the “Hello World” example in the Workbench.
  • Done! You have now run your first app using Evothings Studio.

How to edit code

Next step is to modify the example code:

  • Click the COPY button on the “Hello World” example.
  • Fill in parent folder in the Copy dialog box and click Create.
  • Your new “Hello World” app is listed under “My Apps”.
  • Click RUN to make it the active app (this is needed to make live reload work).
  • Click the CODE button.
  • Open the index.html file in a text editor.
  • Make some interesting changes to the code – e.g. modify the heading to say “Hello Evothings”. ;-)
  • Save changes in the editor.
  • Done! The app now automatically reloads on the device – changes are instantly visible.

Create your own project from scratch

To create your own mobile application project from the very beginning, follow these steps:

  • Create a folder with the project files (HTML/CSS/JavaScript/media files).
  • There needs to be at least one HTML file in the project – used as the entry point of the app.
  • Drag the main HTML file, typically index.html, into the Workbench window.
  • Now just click RUN on the app to launch it on the connected phones/tablets.
  • Note that you can connect multiple mobile phones and tablets to Evothings Workbench. When you save any file in the project (or press RUN again), the app will reload on all of them!

An Evothings app project is just a folder with your HTML and JavaScript files. Just like any web site. And as soon as anything is changed, the Workbench pushes it to all connected clients, just like that!

How to publish an app

There are two ways to publish a mobile application developed with Evothings Studio:

  • Upload the project files to a web server and use Evothings Client to run the app. Just enter the URL to the main HTML file on the web server in Evothings Client and tap CONNECT. Read more here.
  • Build a native app using Cordova. Check out the Cordova Starter Guide to learn more.

Useful hints

  • Press the “Tools” button in the Workbench to use debug logging and JavaScript evaluation tools.
  • Read more about the Workbench in the documentation.
  • Get inspired by the tutorials. Many of them contain fully working examples you can use.

Get started in 5 minutes

Download Evothings Studio and get started within minutes. It is fun and easy!

Questions? – Visit the Evothings Forum
evothings.com/forum

Our Gitter main room, where developers can hang out and get help
gitter.im/evothings/evothings

Our IRC channel on Freenode
webchat.freenode.net/?channels=evothings