Coder Social home page Coder Social logo

edge-frontend's Introduction

Build Status

Overview

About

The edge-frontend repo is the front-end for RHEL for Edge/Fleet managment , which is part of console.redhat.com.

Tools

Cloud-Services-Config

Cloud-service-config is used to run Red Hat Hybrid Cloud Console locally. RHEL for Edge/Fleet Management is part of Red Hat Hybrid Cloud Console.

Spandx

spandx is an HTTP switchboard. With it, you can weave together pieces of a large, complex website by choosing which resources should come from your local system and which should come from a remote environment.

For example, you could point spandx at your production site, but route /static/js to a local directory, which allows you to test your local JS against the production environment. Code in production, it's fun.

More technically, spandx is a flexible, configuration-based reverse proxy for local development.

Patternfly

PatternFly is an open source design system created to enable consistency and usability across a wide range of applications and use cases. PatternFly provides clear standards, guidance, and tools that help designers and developers work together more efficiently and build better user experiences.

Frontend-Components

Frontend-components is a monorepo of Red Hat Cloud services Components for applications in a React.js environment. This repo uses a lot of components imported from the frontend-components repo using module federation.

Module Federation

Module Federation is a feature in Webpack that allows for sharing components outside a repo. When importing a component with module federation, the component is bundled with it's dependencies.

Data Driven Forms

Data Driven Forms converts JSON form definitions (schemas) into fully functional React forms with the provided set of features.

Setup

Install all dependencies

npm install

Verify that node version should be 16.13.0 <= 16.13.1

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

For frontend only

Run the application in beta environment - beta only supported

BETA=true npm run start:proxy

For frontend and backend

Run the application in beta environment - beta only supported

API_PORT=3000 BETA=true npm run start:proxy

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

To switch environment (for instance if you want to run your app with prod DB)

ENVIRONMENT=prod BETA=true npm run start:proxy

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

edge-frontend's People

Contributors

acruzgon avatar adeliaferreira avatar boaz0 avatar daphnemaeve avatar dependabot[bot] avatar depfu[bot] avatar hyperkid123 avatar karelhala avatar ldjebran avatar lesamo avatar loadtheaccumulator avatar matoval avatar mergify[bot] avatar mgold1234 avatar neal-timpe avatar omaciel avatar pavankrao avatar resolutecoder avatar rvsia avatar ryelo avatar saurabh-thakre avatar sean797 avatar tomershinhar avatar tpapaioa 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.