npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-quick-builder

v1.0.2

Published

A CLI tool to help you quickly build React applications and React Components.

Downloads

7

Readme

React Quick Builder

React Quick Builder is a command-line interface tool that helps you create a new React application with a standardized folder structure. It includes Redux, React Router, and Material-UI. This is the very first version of this command line tool. In this version you can create the boilder plate for your application and create new components using the component command.

Installation

You can install React Quick Builder using NPM. Make sure you have NPM installed on your machine before running the following command:

npm install -g react-quick-builder

Note: If you're getting permission issues, make sure to run the command using administrative privileges.

Getting Started

After installing React Quick Builder, you can use it to create a new React application with the following command:

react-quick-builder create-app my-app

This will create a new React application with the folder structure shown below:

my-app/
├── node_modules/
├── public/
│   ├── index.html
│   ├── favicon.ico
│   └── manifest.json
├── src/
│   ├── components/
│   │   ├── App/
│   │       └── index.js
│   │   └── Home/
│   │       ├── index.js
│   │       └── Home.jsx
│   │       └── styles.js
│   ├── constants/
│   │       └── appRoutes.js
│   ├── pages/
│   │   └── Home/
│   │       ├── HomePage.jsx
│   │       └── styles.js
│   ├── routes/
│   │       └── appRoutes.js
│   ├── redux/
│   │       └── rootReducer.js
│   │       └── store.js
│   ├── utils/
│   │   └── hooks/
│   ├── index.js
│   ├── reportWebVitals.js
│   └── setupTests.js
├── .gitignore
├── README.md
├── package-lock.json
└── package.json

Creating a Component

You can also create a new component using the following command:

react-quick-builder create-component MyComponent

This will create a new component named MyComponent in the src/components folder.

Examples

# Create a new React app
react-quick-builder create-app my-app

# Create a new component
react-quick-builder create-component MyComponent

Contributing

We welcome contributions from the community! Please feel free to create a pull request if you have any suggestions or improvements for the project.

What's in the version 2.0

Our focus is to provide couple of different commands by using which you can create the boilerplate code of the component which can include redux, routes or both. There will be other commands to create the hooks. Our ultimate goals is to reduce the time and efforts which the developer spent on creating the standarized coding structure and basic structure for their components against modules and features.

Some example from Version 2.0

# Create a new component with routes
react-quick-builder create-component MyComponent --routes

# Create a new component with Redux
react-quick-builder create-component MyComponent --redux

# Create a new component with routes and Redux
react-quick-builder create-component MyComponent --routes --redux

# Create a new hook
react-quick-builder create-hook HookName

# Create a Restful APIs (GET, PUT, PATCH, POST and DELETE)
react-quick-builder create-service ServiceName --restful

License

This project is licensed under the MIT License.

License: MIT