React-on-esp32-talk icon indicating copy to clipboard operation
React-on-esp32-talk copied to clipboard

Embedding a React application on an ESP32

React on an ESP32

This sample project demonstrates how to run a React application on an ESP32 micro-controller. You can view the recording here

Software prerequisites

You will need to install

Hardware to run demo

instructions

If you are unfamiliar with running IDF commands please visit the Learn ESP32 and follow the first few free modules

  1. clone the repo git clone
  2. open ./main/main.c at the top of the file, set your WiFi SSID and passphrase by changing these lines
static const char *SSID = "MY WIFI SSID";
static const char *PASS = "MY WIFI PASS";

⚠️warning: Both SSID and passphrase are case sensitive

  1. build the React application
cd site
npm run build
  1. (optional) run the web dev server
npm run dev
  1. Open an IDF shell to ensure your IDF environment is loaded and then in the project root run
idf.py flash monitor
  1. make sure your PC is on the same WiFi that you are using
  2. in your browser navigate to http://my-esp32.local
  3. (optional) If you are running a dev server you can also navigate to http://localhost:3000