Local-first chat app across multiple ESP32 nodes
mindmap
root((A single node we can use with trusted people in the lodge))
Client
Authentication?
Server
Implement the sync protocol in C++
Return message bodies from GET `/messages?q=...`
Serve the new svelte app
Implement build scripts to copy the compiled app into the right place in the server source code
Test that it all works
From the root of the project:
pnpm install
pnpm test
The fake-server project contains contract tests that can be run againts a running ESP32 device. To run those tests too, set the TEST_REAL_SERVER env var.
TEST_REAL_SERVER=1 pnpm test
- Install Arduino IDE
- Add the following URLs to the settings under "additional board manager URLs"
- https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json
- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- Go to the boards manager and search for the "ESP32" extension and install that.
- Yay!