Skip to content

osc-vitap/rpi_workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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