Create a MeteorJS app and deploy it to the Raspberry Pi 2

In this tutorial, we are going to create and deploy the sample applciation, MeteorJS Todos, as a Universal Windows App that can run on the Raspberry Pi 2 as well as any other Windows Device.

What you need to for this tutorial

  • Windows machine
  • Raspberry Pi 2
  • Basic Git knowledge
  • Visual Studio 2015. The free, full-featured Visual Studio Community 2015 includes the Windows 10 developer tools, universal app templates, a code editor, a powerful debugger, Windows Mobile emulators, rich language support, and much more—all ready to use in production.
  • (Optional) Windows Standalone SDK for Windows 10. If you are using a development environment other than Visual Studio 2015, you can download a standalone Windows SDK for Windows 10 installer. Note that you do not need to install this SDK if you're using Visual Studio 2015; it is already included.

Step 1: Get and Run MeteorJS Todos

  1. Download MeteorJS for Windows
  2. To download the app, open your terminal and type:

    meteor create --example todos

    This will create a new folder called todos with all of the files that a Meteor app needs.

  3. To run the newly create app, open your terminal and type:

    cd todos

    meteor

    Open Edge and go to http://localhost:3000 to see the app running. It should look like the picture to the left.

Step 2: Deploy your app

Now that we have tested the app locally, let's deploy it to the web so we can use that URL to make a hosted web app.

Go to your directoy and type:

meteor deploy my_app_name.meteor.com

Once it's done, you can navigate to http://my_app_name.meteor.com to play with your app.

Step 3: Your web on Pi

Follow this tutorial to deploy your newly MeteorJS app as a Windows Universal Platform app.