{"id":13542590,"url":"https://github.com/fnproject/ui","last_synced_at":"2025-06-19T13:38:50.139Z","repository":{"id":46202588,"uuid":"100390967","full_name":"fnproject/ui","owner":"fnproject","description":"User interface for fn project.","archived":false,"fork":false,"pushed_at":"2023-10-10T01:01:37.000Z","size":6648,"stargazers_count":88,"open_issues_count":26,"forks_count":21,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-05-09T01:59:09.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fnproject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-15T15:22:21.000Z","updated_at":"2025-03-13T03:40:30.000Z","dependencies_parsed_at":"2024-08-01T10:16:56.770Z","dependency_job_id":"17c261e4-2f1b-45ad-bc40-b1e6ea011470","html_url":"https://github.com/fnproject/ui","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnproject","download_url":"https://codeload.github.com/fnproject/ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176436,"owners_count":21866142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:01:12.051Z","updated_at":"2025-05-09T01:59:14.226Z","avatar_url":"https://github.com/fnproject.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# UI for [Fn](https://github.com/fnproject/fn) [![CircleCI](https://circleci.com/gh/fnproject/ui.svg?style=svg)](https://circleci.com/gh/fnproject/ui)\n\n## Usage\n\nStart an fn server\n\n```sh\nfn start\n```\n\nStart the UI:\n\n```sh\ndocker run --rm -it --link fnserver:api -p 4000:4000 -e \"FN_API_URL=http://api:8080\" fnproject/ui\n```\n\n## Screenshots\n\nAll apps view:\n\n\u003cimg src=\"https://raw.githubusercontent.com/fnproject/ui/master/docs/screenshots/apps.png\" width=\"800\"\u003e\n\nAll functions in an app:\n\n\u003cimg src=\"https://raw.githubusercontent.com/fnproject/ui/master/docs/screenshots/routes.png\" width=\"800\"\u003e\n\n## Development\n\n### Setup\n\n#### 1) Install dependencies\n\n```sh\nnpm install\n\n# if you want webpack globally\nsudo npm install -g webpack@^1.14.0\n```\n\n#### 2) Start Functions API (see [Fn on GitHub](http://github.com/fnproject/fn))\n\n```sh\nfn start\n```\n\n#### 3) Compile assets\n\n```sh\n# option 1: if global webpack\nwebpack\n\n# option 2: if local webpack\nnpx webpack\n```\n\n#### 4) Start web server\n\n```sh\nPORT=4000 FN_API_URL=http://localhost:8080 npm start\n```\n\n* `PORT` - port to run UI on. Optional, 4000 by default\n* `FN_API_URL` - Functions API URL. Required\n\n#### 5) View in browser\n\n[http://localhost:4000/](http://localhost:4000/)\n\n#### Configuring log levels\n\nUI uses [console-logging](https://www.npmjs.com/package/config-logger) for server-side logging. \nThis 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\n\n```\nNODE_CONFIG='{\"logLevel\":\"debug\"}' PORT=4000 FN_API_URL=http://localhost:8080 npm start\n\n```\n\n### Automated Testing\n#### Integration tests\n\nThe Fn UI has some basic Selenium integration tests that can be used to automatically test the UI's core functionality. These tests use the `mocha` testing framework as the driver.\n\nTo run the tests:\n\n##### 1) Install the Chrome Driver\nDownload the ChromeDriver from [Google](https://sites.google.com/a/chromium.org/chromedriver/downloads) and put it in a place which is in your path e.g. `/usr/local/bin/chromedriver`.\n\n##### 2) Install the Node dev dependencies\nEnsure you have the Node dev dependencies installed with:\n```\nnpm install [--only dev]\n```\n\n##### 3) Run the Fn interface\nSee the instructions above for how to start the Node webserver.\n\n##### 4) Configure your tests\nEdit [test_integration/etc/config.yaml](test_integration/etc/config.yaml) accordingly e.g. point `fn_url` to your Fn UI if you're not running it at its default location.\n\n##### 5) Run the tests\n```\nnpm run test-integration\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnproject%2Fui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnproject%2Fui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnproject%2Fui/lists"}