A Simple Server with Python Flask
This is a simple skeleton Flask server project that works on any of the amd64
devices supported by resin.io.
This project simply serves up "Hello World!"
on port :80
of your resin.io device.
To get this project up and running, you will need to signup for a resin.io account here and set up a device, have a look at our Getting Started tutorial. Once you are set up with resin.io, you will need to clone this repo locally:
$ git clone [email protected]:shaunmulligan/x86-64-example.git
Then add your resin.io application's remote:
$ git remote add resin [email protected]:username/myapp.git
and push the code to the newly added remote:
$ git push resin master
It should take a few minutes for the code to push. While you wait, lets enable device URLs so we can see the server outside of our local network. This option can be found in the Actions
tab in your device dashboard.
Once the device is updated, you should be able to naviagte to the URL
in your browser and be able to see the message "Hello World!".