UI for Fn
Start an fn server
fn start
Start the UI:
docker run --rm -it --link fnserver:api -p 4000:4000 -e "FN_API_URL=http://api:8080" fnproject/ui
All apps view:
All functions in an app:
npm install
sudo npm install -g webpack
2) Start Functions API (see Fn on GitHub)
fn start
webpack
PORT=4000 FN_API_URL=http://localhost:8080 npm start
PORT
- port to run UI on. Optional, 4000 by defaultFN_API_URL
- Functions API URL. Required
UI uses console-logging for server-side logging.
This supports log levels of debug
, verbose
, info
, warn
and error
. By default the log level is info
(this is configured in config/default.json
). To set a log level of debug
, use
NODE_CONFIG='{"logLevel":"debug"}' PORT=4000 FN_API_URL=http://localhost:8080 npm start