Code Monkey home page Code Monkey logo

edge-frontend's Introduction

Build Status

edge-frontend

Getting Started

Install all dependencies

>$ npm install

Replace line 6 in edge-frontend/profiles/local-frontend.js to:

const routes = {
    '/config': { host: 'http://127.0.0.1:8889' },
    '/beta/config': { host: 'http://127.0.0.1:8889' },
};

NOTE: You will need to run cloud-services-config until edge-frontend is on a stable branch

Read more here

Setting up cloud-services-config

Clone cloud-services-config to your local machine and navigate into the cloned directory.

Copy main.yml to its own config directory.

>$ mkdir config
>$ cp main.yml config

Start http-server

>$ npx http-server -p 8889

You can choose to either run the application with webpack-proxy or with insights-proxy.

Running locally with webpack-proxy

Add prod.foo.redhat.com, stage.foo.redhat.com, qa.foo.redhat.com and ci.foo.redhat.com to your /etc/hosts file (one time action). Follow this guide on how to edit your /etc/hosts file

Your /etc/hosts file can look like:

127.0.0.1 prod.foo.redhat.com
127.0.0.1 stage.foo.redhat.com
127.0.0.1 qa.foo.redhat.com
127.0.0.1 ci.foo.redhat.com
127.0.0.1 qaprodauth.foo.redhat.com

Run the application in beta environment - beta only supported

>$ BETA=true npm run start:proxy

(Beta) Edge application will be available on https://ci.foo.redhat.com:1337/beta/edge/fleet-management

Running locally with insights-proxy

Follow the guide on insights-proxy on how to install proxy.

Once docker is installed, run

SPANDX_CONFIG=./profiles/local-frontend.js ../insights-proxy/scripts/run.sh

in one terminal.

Open another terminal and run

>$ npm start

Edge application will be available on https://ci.foo.redhat.com:1337/edge/fleet-management

edge-frontend's People

Contributors

boaz0 avatar dependabot[bot] avatar karelhala avatar sean797 avatar

Watchers

 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.