@hudoro/cli
v0.0.17
Published
CLI for @hudoro packages
Keywords
Readme
Hudoro CLI
How to install
npm i -g @hudoro/cliSelect one of the templates
Select project template: (Use arrow keys)
❯ npm-react-component
express-api
react
react-ts
react-ts-central-loginEnter your project name
Enter project name: hudoro-react-tsInstall Dependencies
npm installHow to run
Run Server
npm run devIf you choose REST API template, do the following command :
Migrate the database
npm run db.migrateGenerate the database
npm run db.generateGenerating Feature
hsd generate Select generating feature: (Use arrow keys)
❯ api
reactEnter your feature name
Enter feature name: usersAPI
This command will generate a file
users.service.ts
users.controller.ts
users.mapper.ts
users.repository.ts
users.dto.ts
users.route.tsReact
This command will generate a file
users/views/UsersViews.tsx
users/hooks/useUsers.ts
users/components/UserContent.tsx