datahub/datahub-web
dependabot[bot] e4e3bc92bf
build(deps): bump lodash from 4.17.15 to 4.17.19 in /datahub-web (#1738)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-20 09:56:35 -07:00
..
2019-08-31 20:51:14 -07:00
2019-08-31 20:51:14 -07:00
2019-08-31 20:51:14 -07:00
2019-08-31 20:51:14 -07:00
2020-02-06 09:55:20 -08:00
2019-08-31 20:51:14 -07:00
2020-02-23 19:36:26 -08:00

DataHub Web

The DataHub web application is written in TypeScript and EmberJs. The application is developed using a modular monorepo architecture, via Yarn Workspaces, that allows us to split the application features into individually installable packages.

DataHub

Folder Layout

The folder structure is organized as below:

datahub-web
├── @datahub # application modules / packages
├── blueprints # EmberJs blueprints for the app
├── configs # configuration sources for building the app
├── node_modules # installed packages dependencies
├── packages # application source directory
└── scripts # helper shell scripts

Prerequisites

Build

Running the build script ./gradlew build from the top-level directory <DOWNLOAD_DIRECTORY>/datahub will build the entire app.

To build the web client (Ember application), you can run the following from the top-level directory

datahub> ./gradlew emberBuild

or

datahub> ./gradlew :datahub-web:build

Building will run the monorepo test suite and transpile the TypeScript application into the datahub-web/dist folder.

Developing & Running the web application

Once DataHub GMS and the DataHub Frontend are running you can start DataHub Web by running:

datahub> ./gradlew emberServe

or

datahub-web> yarn # To install dependencies, if you skipped the build step above
datahub-web> yarn run dev # serve the ember application

This will start the ember application and proxy to your running instance of DataHub Frontend. NOTE: If you are running DataHub Frontend on a port other than 9001, you will need to update the proxy to this port number in the gradle script.

Testing

To run all tests

datahub> ./gradlew emberTest

or

datahub> yarn test

To run test for a specific package / workspace in the DataHub Web monorepo, you can execute

datahub> yarn workspace <WORKSPACE_NAME> test # where WORKSPACE_NAME is a yarn workspace in @datathub/

For example:

datahub> yarn workspace @datahub/data-models test

Contributing

See contributing.md