Custom CLI to bootstrap React apps
npm install @aashdit-technology/own-clid:\Ajay\own-cli).
bash
npm link
`
Usage
Once linked, you can create a new project by running:
`bash
create-my-app
`
Example:
`bash
create-my-app my-new-project
`
Features
- Vite + React: Uses the latest Vite template.
- Folder Structure: Automatically creates a scalable folder structure:
- src/api, src/components, src/features, src/store, etc.
- Libraries Pre-installed & Configured:
- TailwindCSS: Configured with @tailwindcss/vite.
- Redux Toolkit: Store and Auth slice setup.
- React Router DOM: Basic routing with Layouts.
- Axios: Custom axios instance with interceptors.
- React Hot Toast: For notifications.
Project Structure Created
`
my-new-project/
├── src/
│ ├── api/
│ │ ├── axiosInstance.js
│ │ └── auth.api.js
│ ├── components/
│ ├── config/
│ ├── features/
│ │ └── auth/
│ ├── layouts/
│ ├── pages/
│ ├── routes/
│ ├── store/
│ ├── App.jsx
│ ├── main.jsx
│ └── index.css
└── vite.config.js
``