UNPKG

create-kalp-boilerplate

Version:

A Kalp CLI tool to generate a React boilerplate

58 lines (44 loc) • 1.62 kB
# create-kalp-boilerplate ## šŸš€ Introduction `create-kalp-boilerplate` is a CLI tool that helps you quickly generate a React boilerplate with optional authentication and microfrontend configurations. ## šŸ“¦ Installation Install the package globally using npm: ```sh npm install -g create-kalp-boilerplate ``` ## šŸ›  Usage To create a new React application, run: ```sh create-kalp-boilerplate <app-name> ``` ### Options: | Option | Description | |-----------------|-----------------------------------------------| | `--auth` | Adds authentication functionality | | `--mfd-config` | Adds configuration for microfrontends | ### Example: ```sh create-kalp-boilerplate my-app --auth --mfd-config ``` This will create a React project named `my-app` with authentication and microfrontend configuration. ## šŸ“ Folder Structure After running the command, the generated project will have the following structure: ``` my-app/ ā”œā”€ā”€ src/ │ ā”œā”€ā”€ components/ │ ā”œā”€ā”€ services/api/axios-instance.ts # If --auth is used ā”œā”€ā”€ package.json ā”œā”€ā”€ README.md └── ... ``` ## šŸ”§ Features āœ… Generates a TypeScript-based React boilerplate āœ… Optionally includes authentication setup āœ… Supports microfrontend architecture āœ… Installs dependencies automatically ## šŸ“œ License This project is licensed under the MIT License. ## šŸ‘Øā€šŸ’» Author **Sachin Sharma** For any issues or feature requests, feel free to open an issue in the [GitHub repository](https://github.com/sachinp2e/react-boilerplate-ts).