@hudoro/cli
v0.0.16
Published
CLI for @hudoro packages
Downloads
446
Readme
Hudoro CLI
How to install
npm i -g @hudoro/cli
Select one of the templates
Select project template: (Use arrow keys)
❯ npm-react-component
express-api
react
react-ts
react-ts-central-login
Enter your project name
Enter project name: hudoro-react-ts
Install Dependencies
npm install
How to run
Run Server
npm run dev
If you choose REST API template, do the following command :
Migrate the database
npm run db.migrate
Generate the database
npm run db.generate
Generating Feature
hsd generate
Select generating feature: (Use arrow keys)
❯ api
react
Enter your feature name
Enter feature name: users
API
This command will generate a file
users.service.ts
users.controller.ts
users.mapper.ts
users.repository.ts
users.dto.ts
users.route.ts
React
This command will generate a file
users/views/UsersViews.tsx
users/hooks/useUsers.ts
users/components/UserContent.tsx