Improve this doc

Resin.io Seed Projects

Programming Language Seed Projects

Below is a list of simple 'Hello, World' projects written in a number of different programming languages, which are designed to form the basis of your own projects written in each language.

The projects use Dockerfiles to install packages and configure the local environment as needed for each language. This step is performed on the resin.io build server and the finished product is pushed to your devices.

A link is provided for each project's individual Dockerfile below for easy customisation.

Installing a Project

To install a project you will need a resin.io account with an application set up ready to receive code. See the getting started and deployment guides for details on how to do this.

To deploy a project simply clone it and push it to your application's resin endpoint. E.g. for the Text to Speech Converter project:-

git clone https://github.com/resin-io/text2speech.git
git remote add resin [endpoint]
git push resin master

Node.js

Repository

This is a simple Hello, World project for node.js designed to act as a basis for future work. It demonstrates how to install native Linux packages and configure your application.

Repository

This seed project runs a simple Express.js server on port :80. It is slightly different from the simple-nodejs project as it includes a Dockerfile, this allows for more flexibility at build time and better caching of builds.

Python

Repository

Hello World written in Python using a custom Dockerfile.

Repository

This seed project runs a simple Flask server on port :80.

C♯

Repository by Martin Calsyn

Hello World written in C# using a custom Dockerfile.

Martin is also currently building out a series of .net resin.io examples, you can view his progress here

NOTE: This project can be adapted to target any .net language.

Java

Repository

Hello World written in Java using a custom Dockerfile.

NOTE: This project can be adapted to target any JVM language.

Scala

Repository

Hello World written in Scala using a custom Dockerfile. Uses SBT to fetch the Scala runtime.

Ruby

Repository

Hello World written in Ruby using a custom Dockerfile.

Golang

Repository

This is a simple seed project for getting started with Go on the Intel Edison. The project use [GB][gb-builder-link] to build the project and it's dependencies in the Dockerfile.

Note: This project will not build on any of the ARM architecture board. Currently, this project will only work on the Intel Edison.

Resin Golang Image Example

This project contains examples of how to use Resin Golang images on devices supported by Resin.io.