Giter Site home page Giter Site logo

omarkasabaki / wcd-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gerrytucker/wcd-starter

0.0 0.0 0.0 44 KB

Library project for React UI Builder platform

Home Page: https://reactuibuilder.com

License: MIT License

HTML 11.62% JavaScript 7.27% CSS 2.47% TypeScript 78.64%

wcd-starter's Introduction

Library project for the React UI Builder platform

This repository is a starting point for creating a library of components that can be processed in React UI Builder and used out of the box in any React Web Application.

Since React UI Builder is based on a visual Web application builder - Webcodesk, we use Webcodesk to create the component library locally.

The instruction for creating components:

  1. Make a copy (fork) of this repository into your own repository on GitHub.

  2. Clone your repo to the local disk and run yarn install command in the command line.

  3. Run Webcodesk server with the yarn wcd command in the command line. Then open the http://localhost:7070 address in the browser.

  4. Now you can create your own component in the favorite source code editor. All source codes for components should be in the /src/usr directory.

Please note: We understand that you may already have a ready-made component library or you are going to publish a library based on some popular component package that already exists. But due to the fact that all components have different implementation approaches, and may differ in the description of properties in code, we propose to create wrappers for components using TypeScript and PropTypes to unify the description of properties.

So please find the sample source code for component wrappers in the /src/usr/sample directory of this project. Create your new components using these samples as the templates.

  1. Switch to the Webcodesk tab in the browser and find your component in the Components section in the left panel.

Read more about how to create reusable components in Webcodesk here: Webcodesk User Guide

The instruction for publishing component library to the React UI Builder platform

Your component library code must be included in one or more project templates so that users can use the components in their projects that will be based on these templates.

  1. Create a repository on GitHub with template project code. As an example, you can use existing project templates: Material UI library for Create React App framework

  2. Copy the contents of the /src/usr directory from the library project to the /src/usr directory of the template project.

  3. If you want to add the template project for another framework, repeat 1 and 2 steps.

  4. Change the boilerplates paths in the /src/usr/README.md file in the library project to the paths of your template projects.

  5. Write a letter to the React UI Builder team (reactuibuilder(at)gmail.com) with the New React UI Builder library subject. Specify the path to the library project repo in the letter body.

The instruction for updating component library on the React UI Builder platform

  1. Once you changed the code in your library project, copy the contents of the /src/usr directory from the library project to the /src/usr directory of the template project.

  2. Repeat the 1 step for all template projects of this library.

  3. Increase the version number of the library in the /src/usr/README.md file in the library project.

  4. Write the letter to the React UI Builder team (reactuibuilder(at)gmail.com) with the Update React UI Builder library subject. Specify the path to the library project repo in the letter body.

Please note: All repositories should be public and have MIT license.

Community

If you need any help or want someone to set up the library project with you and get you stepping through code in your IDE, don't be afraid to speak up!

You can ask questions or talk about React UI Builder at Spectrum chat

wcd-starter's People

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.