Prototype for the firmware wizard
Branch: master
Clone or download
Pull request Compare This branch is 39 commits ahead of freifunk-berlin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
lede_built/node-config-frontend
src
.eslintrc
.gitignore
.travis.yml
LICENSE.md
Makefile
README.md
config-schema.json
deploy.sh
id_rsa_travis.enc
package.json
webpack.config.js

README.md

Frontend of the firmware wizard Build Status Dependency Status

Currently, this is a prototype for an upcoming firmware wizard. Check it out here!

Technical background

This wizards follows a few principles:

  1. Router configuration should be a piece of cake (for users and developers).
  2. Make the router stupid: all business logic is in the browser. Lua and LuCI can be removed from the router.
  3. The actual router config is generated from a single-source-of-truth JSON config.
  4. The wizard can be re-run with the JSON config.
  5. Migrations to new versions of the firmware can regenerate the actual config from the JSON config.

Development

You need npm (included in NodeJS). The dependencies are fetched via

npm install

Dev builds

The following command builds the required files for development purposes in the subdirectory dist and spawns a web server on http://localhost:8080 (with live reload when you change files in src/):

npm run watch

Production builds

A production build (with minification) is triggered via

npm run build