IEEE SAC 2016 Workshop by Rockwell Automation
We are going to be building a web interface that queries light and temperature sensors for data and uses it to make decisions. This will be done using Particle Photons acting as the data emitters and a web-based Single Page Application behaving as the decision maker and dashboard.
Experience in Javascript is not required but will help and all the code, parts list and presentation materials will be stored in this repository and will be available indefinitely.
There are 3 things that you will need to download and install before the workshop:
Please get these installed before you show up, it will make things a go a lot smoother. If you have any trouble getting them installed or questions don't hesitate to email us or create an issue on the Github repository.
NOTE - git
for OS X comes packaged with the Xcode command line tools. Installing Xcode from the App Store and running it should install git
for OS X. Another way to make sure you get git
is to run git
from the Terminal. If git
is not found, it will ask you to install the Xcode Command Line Tools if you're on OS X 10.11 or greater.
If you've never used these before, here's the short explanation to what they are and why we need them.
git
is a source control tool that we will use to download the code repository we'll be using for the workshop from the web to your computer. Check out the site and try the online tutorial if you're interested in learning more.
We really are using nodejs on your machine for it's package management tool, npm
. What is npm
? It stands for Node Package Manager. In short, it allows us to give you a tiny file with a list of packages in it, then npm
will read that file, run out to the web and download all of those things and install them in the code repository for our project to use. If you want to learn a little bit of node, a great resource is nodeschool.io.
We're engineers, we have great tools to make our lives easier!
You're going to need something to write code with in the workshop. While all of the files we are working with are simply text files that you could open with notepad, it gets very difficult to open and close files if you are browsing around. There's lots of editors out there for programmers, take your pick! Here are some suggestions.
We are going to be using Angular2 and Typescript for this workshop. Think of Typescript as a superset of Javasript so all Javascript is legal Typescript. If you're interested in learning a little more about either of these subjects, we have selected some tutorials to help you get started.
- Javascript - check out the
javascripting
tutorial to learn a bit about the language. You are going to neednode
andgit
installed for this so do this after getting those installed. - Javascript CodeCombat - a great tool to start learning programming (in general) while also casually gaming. It supports python and javascript (and a couple of other languages) syntaxes.
- Angular2 quickstart - the Angular2 quickstart really only takes 5-10 minutes to run through and it gives an overview of what Angular2 is and how to get started writing code in it. It also gives a basic introduction to Typescript and the ES6 syntax for JavaScript.
- Typescript - This is a Typescript quickstart tutorial. Like the Angular2 quickstart, it also doesn't take long and it gives a crash course on what Typescript is and the features.