influxdb/ui
William Baker 4237dda205
feat: synchronize ui folder with ui repository (#21090)
* feat: synchronize ui folder with ui repository

* docs: updated README in /ui to reflect new UI asset build process

* chore: update CHANGELOG

* chore: re-worded CHANGELOG message and added trailing newline to fetch_ui_assets.sh script

* fix: leveraged queryBuilder test code from ui repo to fix flaky queryBuilder test on chrome

* docs: added comments to fetch_ui_assets script explaining where the assets come from

* chore: empty commit to trigger CI
2021-03-31 10:55:49 -04:00
..
__mocks__/@influxdata feat(ui): wasm flux parser (#14471) 2019-07-26 17:21:52 -07:00
assets feat(notebooks): add empty state (#18256) 2020-05-27 16:14:37 -07:00
cypress feat: synchronize ui folder with ui repository (#21090) 2021-03-31 10:55:49 -04:00
mocks fix: switch port to 8086 2020-09-03 14:40:29 -07:00
scripts chore(ui): add giraffe and clockface sourcemaps to honeybadger config (#15444) 2019-10-17 09:38:01 -07:00
src feat: adding task ids to the ui (#20894) 2021-03-22 15:33:40 -04:00
.browserslistrc
.dockerignore chore(ui): allow deployment configuration (#15383) 2019-10-11 12:17:49 -07:00
.eslintignore build(ui): make some tweaks to eke some speed out of eslint 2019-10-30 14:36:52 -07:00
.eslintrc.js chore: update eslint to force curly braces 2020-09-23 16:02:55 -07:00
.npmrc Make npm less noisy 2019-02-20 18:15:09 -08:00
.prettierrc.json Migrate from TSLint to ESLint 2019-02-20 18:15:09 -08:00
Makefile feat: synchronize ui folder with ui repository (#21090) 2021-03-31 10:55:49 -04:00
README.md feat: synchronize ui folder with ui repository (#21090) 2021-03-31 10:55:49 -04:00
cypress.json feat: synchronize ui folder with ui repository (#21090) 2021-03-31 10:55:49 -04:00
fetch_ui_assets.sh feat: synchronize ui folder with ui repository (#21090) 2021-03-31 10:55:49 -04:00
global.d.ts feat(ui): new load data page (#19351) 2020-08-18 11:17:36 -07:00
index.d.ts feat(ui): new load data page (#19351) 2020-08-18 11:17:36 -07:00
jest.config.js build(ui): fix report generation & collection for JS tests (#20414) 2020-12-23 13:10:06 -08:00
jestSetup.ts feat(cancel-query-request): added abort query request functionality after submitting a query (#18387) 2020-06-16 05:19:34 -07:00
package.json build(lsp): Upgrade flux-lsp-browser to v0.5.38 (#21104) 2021-03-30 15:38:44 -04:00
testSetup.ts
tsconfig.json chore: cleaning (#16915) 2020-02-20 09:58:56 -08:00
tsconfig.test.json feat(ui): new load data page (#19351) 2020-08-18 11:17:36 -07:00
webpack.common.ts feat(ui): new load data page (#19351) 2020-08-18 11:17:36 -07:00
webpack.dev.ts fix: switch port to 8086 2020-09-03 14:40:29 -07:00
webpack.prod.ts fix(ui): change biuld optimization for parralel option 2020-03-20 08:18:04 -07:00
webpack.tsconfig.json build(webpack): parcel to webpack (#14410) 2019-07-23 14:10:34 -07:00
webpack.vendor.ts feat: upgrading lsp to 0.3.0 (#17043) 2020-03-02 09:38:30 -08:00
yarn.lock build(lsp): Upgrade flux-lsp-browser to v0.5.38 (#21104) 2021-03-30 15:38:44 -04:00

README.md

InfluxDB UI

UI assets for InfluxDB are automatically downloaded and embedded in the influxd binary when using the top-level Makefile. The UI assets are built and made available from the influxdata/ui repository. Currently, this ui folder and its contents are being kept to preserve the ability to run end-to-end tests via Cypress in this repository against the built UI when changes are made to influxdb.

Starting a Local Development Environment

It is possible to run a frontend development server with hot reloading using the UI from influxdata/ui in front of the InfluxDB backend:

Start influxd listening on the default port (8086):

$ ./bin/darwin/influxd

Clone (if needed) & start the UI development server from the ui repository:

$ git clone https://github.com/influxdata/ui.git
$ cd ui
$ yarn start

The UI development server runs at http://localhost:8080

Running InfluxDB with Local UI Assets

To run InfluxDB with local UI assets, first build the assets:

$ git clone https://github.com/influxdata/ui.git
$ cd ui
$ yarn build

Start influxd using the local UI assets via the --assets-path flag. For example, if the ui folder containing built assets is at the same level as the influxdb folder and the influxd binary is at influxdb/bin/darwin/influxd:

$ ./bin/darwin/influxd --assets-path=../ui/build

Cypress Testing

For the end to end tests to run properly, the server needs to be running in the e2e testing mode with the in-memory data store. From the influxdb directory:

$ ./bin/darwin/influxd --e2e-testing --store=memory

From the ui directory, install the packages necessary for testing:

$ yarn install

To run Cypress locally:

$ yarn cy