Once the platform and libraries are downloaded the back end should be compiling.
@ -51,18 +51,18 @@ Once the platform and libraries are downloaded the back end should be compiling.
#### Uploading the firmware
Standard configuration settings, such as build flags, libraries and device configuration can be found in ['platformio.ini'](platformio.ini). The project is configured to upload via serial by default, you can change the upload mechanism to OTA by uncommenting the relevant lines.
The project is configured to upload over a serial connection by default. You can change this to use OTA updates by uncommenting the relevant lines in ['platformio.ini'](platformio.ini).
See the [PlatformIO docs](http://docs.platformio.org/en/latest/projectconf.html) for full details on what you can do with this.
The firmware may be uploaded to the device by pressing the "Upload" button:
Click the upload button in PlatformIO, or type the upload command if prefer the command line approach:
The interface has been configured with create-react-app and react-app-rewired so the build can customized for the target device. The large artefacts are gzipped and source maps and service worker are excluded from the production build. This reduces the production build to around ~200k, which easily fits on the device.
@ -89,9 +89,21 @@ npm run build
> **Note**: The build command will also delete the previously built interface, in the ['data/www'](data/www) directory, replacing it with the freshly built one ready to upload to the device.
#### Uploading the file system image
The compiled user interface may be uploaded to the device by pressing the "Upload File System image" button:
You can run a local development server during development to preview changes to the front end them without the need to upload a file system image to the device after each change.
You can run a local development server to allow you preview changes to the front end without the need to upload a file system image to the device after each change. Run the standard npm start command to start the development server: