@tuv-indo/cli
v0.0.1-beta.6
Published
CLI for @tuv-indo packages
Keywords
Readme
Tuv CLI
How to install
npm i -g @tuv-indo/cliCommand
tuv list all command
tuv add <package> Install an npm package from @tuv-indo
tuv remove <package> Uninstall an npm package from @tuv-indo
tuv create [option] [project-name] Create a new project
tuv generate [option] [feature-name] Create a new project
tuv help [command] display help for commandSelect one of the templates
Select project template: (Use arrow keys)
❯ express-api
react-tsEnter your project name
Enter project name: tuv-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
tuv 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