Skip to content
Turn on, off raspberry pi led using react
JavaScript HTML Python CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Connect raspberry pi with react js to turn on, off a led bulb. Backend folder running a flask microservice in the raspberry pi. Frontend folder is a simple react app with two buttons, calls to the microservice.

You can find the blog post here, expains all the details from configuring circuit to setting up the microservice

Backend setup

Backend using python flask framework.


git clone url
cd backend
pip install flask

Run flask run --host=

Frontend Setup

Frontend is using react


npm install

Go to frontend/src/config.js

Change the url to your IP of raspberry pi


npm start

Access the panel from http://rpi-address:3000

You can’t perform that action at this time.