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 using python flask framework.
git clone url cd backend pip install flask
FLASK_APP=serve.py flask run --host=0.0.0.0
Frontend is using react
Change the url to your IP of raspberry pi
Access the panel from