SuiOni / water_squad_app

A simple Hello World server with Python Flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Simple Server with Python Flask

This is a simple skeleton Flask server project that works on any of the devices supported by balena.

This project simply serves up "Hello World!" on port :80 of your balena device.

To get this project up and running, you will need to signup for a balena account here and set up a device, have a look at our Getting Started tutorial. Once you are set up with balena, you will need to clone this repo locally:

$ git clone git@github.com:balena-projects/simple-server-python.git

Then add your balena application's remote:

$ git remote add balena username@git.balena-cloud.com:username/myapp.git

and push the code to the newly added remote:

$ git push balena 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 toggled on the device summary page, pictured below or in the Actions tab in your device dashboards.

Enable device URL

Once the device is updated, you should see this in your logs: log output

Then in your browser you should be able to open the device URL and see the message "Hello World!".

About

A simple Hello World server with Python Flask


Languages

Language:Vue 42.0%Language:Python 32.6%Language:JavaScript 7.1%Language:Dockerfile 7.0%Language:TypeScript 6.4%Language:SCSS 2.1%Language:HTML 1.9%Language:Shell 0.8%