Skip to content

jeperry/mig-ui

This branch is 517 commits behind migtools/mig-ui:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

60822c7 · Aug 29, 2019
Jun 28, 2019
Jul 23, 2019
Jun 26, 2019
Jun 19, 2019
Jun 21, 2019
Aug 22, 2019
Aug 29, 2019
Jun 21, 2019
May 28, 2019
Jul 15, 2019
May 30, 2019
Aug 20, 2019
Feb 27, 2019
Jul 8, 2019
Jul 15, 2019
Aug 16, 2019
Jul 15, 2019
May 28, 2019
Aug 16, 2019

Repository files navigation

mig-ui

Build Status

Quick-start

Copy config/config.dev.json.example to config/config.dev.json where you can configure your local development settings.

cp config/config.dev.json.example config/config.dev.json

Also ensure you have yarn installed by following recommended install instructions:

https://yarnpkg.com/en/docs/install#centos-stable

UI development server

git clone https://github.com/fusor/mig-ui # clone the project
cd mig-ui # navigate into the project directory
yarn # install  dependencies
yarn build # build the project
yarn start # start the UI development server

yarn start will run the UI's development server in "local" dev mode. The purpose of this mode is to mock out any external dependencies like Login and the cluster api's server so the UI can be hacked on as easily as possible.

Remote dev mode

If you would like to run the console locally, but communicate with real clusters on the backend, you must first configure the remote cluster acting as the UI's host. To do this, update the clusterApi in config/config.dev.json. The UI will use this cluster for oauth login and effectively run as if it were served from that cluster.

Additionally, the remote scripts expect the OpenShift client tool oc to be in your PATH (available as "client tools" here). You should also have logged into the cluster you expect to use using oc login.

To start the remote cluster backed dev server, run:

yarn start:remote # start the UI development server, backed by remote cluster

Contributing

Install development/build dependencies yarn

Start the development server yarn start

Run a full build yarn build

Consistent styles are enforced by travis and will gate PR merges. To check your code prior to submission, run: yarn lint

About

Openshift Migration UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 91.3%
  • JavaScript 7.3%
  • Other 1.4%