GithubHelp home page GithubHelp logo

rahul-thakoor / simple-server-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from balena-io-examples/balena-python-hello-world

0.0 2.0 0.0 915 KB

A simple Hello World server with Python Flask

Python 100.00%

simple-server-python's Introduction

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 [email protected]:balena-projects/simple-server-python.git

Then add your balena application's remote:

$ git remote add balena [email protected]: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!".

simple-server-python's People

Contributors

shaunmulligan avatar nchronas avatar chrisys avatar dansku avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.