1.0.6 • Published 10 months ago
kklo-react-ts-template v1.0.6
Installation
Install the package globally:
npm install -g kklo-react-ts-template
Usage
npx init-project my-project
It will create a new project with the following structure:
my-project
├── src
│ ├── assets
│ │ └── ...
│ ├── components
│ │ ├── layout
│ │ │ └── DashboardLayout.tsx
│ │ └── pages
│ │ └── ErrorPage.tsx
│ ├── configs
│ │ ├── api.ts
│ │ ├── queryKeys.ts
│ │ └── routes.ts
│ ├── hooks
│ │ └── useParamHelper.ts
│ ├── pages
│ │ └── ...
│ ├── services
│ │ └── user.service.ts
│ ├── stores
│ │ └── ...
│ └── types.d.ts
├── tsconfig.app.json
├── tsconfig.node.json
└── vite.config.ts
And will install the following packages:
- axios
- react-router-dom
- @tanstack/react-query
- @types/node
Run the following command:
cd my-project
npm run dev
Open http://localhost:3000 in your browser.
License
MIT