WebAppsDocs/en-US/win10/WebOnPi.md

7.4 KiB

layout title permalink lang
index Web apps on the Raspberry Pi 2 /en-US/win10/WebOnPi.htm en-US

Your web app on a Pi

Deploy your awesome website on the Raspberry Pi 2 by making a Hosted Web App for Windows

Web applications on the Raspberry Pi 2

We've had the pleasure to play with the Raspberry Pi for sometime now while testing the EdgeHTML rendering engine on Windows IoT Core. The one consitent thing we found is that anyone who walked through our open space was interested in the Pi and was amazed by how easy you could deploy a web app to it. Knowing that this device is unique and loved by the maker community, we thought it would be great to share how to quickly build a Universal Windows App in HTML and JavaScript and get it running on the Pi.

Home Application

If you've received a Raspberry Pi from the Web Platform team, your new Pi has these awesome sample apps:

  1. Home App allows you to navigate back and forth between pre-installed apps. You can also see your device info and select your network preferences.

  2. Web Hello Blinky allows you to toggle and modulate the blinking frequency of the on-board LED. This is possible thanks to the simple JavaScript projections of WinRT APIs. Check out the repo to see how you can easily control the Pi's GPIO's through JavaScript.

  3. #WebOnPi shows the newest 20 tweets with the hashtag: #WebOnPi. Tweet something out to see your tweet glide among the clouds all thanks to the Pi!

  4. Blinky with CodePen. CodePen's power is now available on the Pi. Play with HTML, CSS, and JavaScript on the fly!

  5. MeteorJS Todos helps you stay organized no matter your device. Desktop, mobile or even a Raspberry Pi, we got you covered. The app is built with the platform MeteorJS.

  6. MeteorJS Tutorial. Learn how to build and deploy a MeteorJS app to the Pi

If you didn't get a Raspberry Pi from us, don't worry. You can easily provision your Pi following this tutorial and get the home app here.

Deployment

So you've played with the sample apps and are feeling motivated to deploy your own app to the Pi? Great! It's very simple. Let's start by choosing your route:

  1. Deploying using ManifoldJS (Mac)
  2. Deploying using Visual Studio (Windows)

Our Kit

There's an official WIndows Kit, but we decided to go for a slightly different spec.