Git Product home page Git Product logo

mig-ui's Introduction

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

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

UI development server

git clone https://github.com/konveyor/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

Contributors please read and follow the contributing recommendations which also provides more details about the project.

mig-ui's People

Contributors

ibolton336 avatar eriknelson avatar danil-grigorev avatar renovate[bot] avatar andyvesel avatar mattnolting avatar gildub avatar mturley avatar jwmatthews avatar mansam avatar bond95 avatar djwhatle avatar pranavgaikwad avatar dependabot[bot] avatar jmontleon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.