Mair / React-on-esp32-talk

Embedding a React application on an ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Embedding a React application on an ESP32


Languages

Language:C 66.5%Language:TypeScript 25.6%Language:Dockerfile 2.8%Language:CMake 2.2%Language:HTML 1.1%Language:Makefile 1.0%Language:JavaScript 0.7%Language:CSS 0.2%