create-kalp-boilerplate
Version:
A Kalp CLI tool to generate a React boilerplate
58 lines (44 loc) ⢠1.62 kB
Markdown
# 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).