Skip to content

A simple flask API for the rpi workshop

Notifications You must be signed in to change notification settings

slowstabs/rpi_workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Raspberry Pi workshop

I hope everyone learnt how to setup a Raspberry Pi and run Nginx server on it. Now we will be building a simple API using Flask.

Please copy the code below and save it with <your_name>.py inside src/routes folder. For example, if your name is bharath, then name of the file should be bharath.py.

Here is the code:

from flask_restful import Resource

class Route(Resource):
	def get(self):
		return 'Hello, World!'

Replace the 'Hello, World!' with whatever you want.

Click here for detailed explanation

About

A simple flask API for the rpi workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.1%
  • HTML 36.2%
  • Dockerfile 6.5%
  • JavaScript 4.2%