A self-hosted web interface running on an ESP32-C3, in Rust. Starts a soft AP and web server on the device.
Requires nodejs and npm
to build.
To install all dependencies and build the combined interface file, from within the client/
directory:
$ npm install
$ npm run dev # build for development
$ npm run prod # build for production
$ npm run watch # watch for changes and automatically rebuild
To build the production version of the interface (ie. minified/gzipped) and place it in the correct location, from within the client/
directory:
$ npm run prod
$ cp dist/index.html.gz ../server/resources/
Requires the use of the Rust nightly release channel.
With the index.html.gz
file already copied into the resources/
directory, from within the server/
directory:
$ cargo espflash --release --monitor
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.