Giter Club home page Giter Club logo

widget-layout's Introduction

widget-layout

Reusable drag and drop UI layout for frontends

Initial etc/hosts setup

In order to access the https://[env].foo.redhat.com in your browser, you have to add entries to your /etc/hosts file. This is a one-time setup that has to be done only once (unless you modify hosts) on each machine.

To setup the hosts file run following command:

npm run patch:hosts

If this command throws an error run it as a sudo:

sudo npm run patch:hosts

Getting started

  1. npm install

  2. npm run start

  3. Open browser in URL listed in the terminal output

  4. Currently, App.tsx will throw a type error until your app is registered and a navId has been set

Update config/dev.webpack.config.js according to your application URL. Read more.

Testing

npm run verify will run npm run lint (eslint) and npm test (Jest)

Run locally with chrome service BE

!Prerequisites! Podman, podman-compose and go (ideally gvm) installed

  1. Pull chrome-services repository
  2. Run make infra in chrome-services repository
  3. Create .env file and copy default values as mentioned in chrome-service-backend#local-testing in chrome-services repository
  4. Run go run main.go in chrome-services repository
  5. Run CONFIG_PORT=8000 npm run start in widget-layout reposiroty

widget-layout's People

Contributors

epwinchell avatar codywmitchell avatar florkbr avatar hyperkid123 avatar karelhala avatar fhlavac avatar aferd avatar radekkaluzik 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.