0.0.2 • Published 1 year ago
ts-expressor v0.0.2
ts-expressor
A CLI tool for generating TypeScript-based Express applications focuses on API development. Additionally include file generating commands for Controller class, Validation Schema, and Repository class.
Installation
# Global Install
npm install -g ts-expressor
# Or
npx ts-expressorHow to use
Create New App
npx ts-expressor new my-express-appCreate Controller Class
npx ts-expressor make:controller userUserController class created in ./src/app/controllers/user.controller.ts
Create Repository Class
npx ts-expressor make:repository userUserRepository class created in ./src/app/controllers/user.repository.ts
Create Validation Schema
npx ts-expressor make:schema userThe file user.schema.ts has been created in the ./src/app/validateSchema directory.