0.0.2 • Published 9 months ago

ts-expressor v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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-expressor

How to use

Create New App

npx ts-expressor new my-express-app

Create Controller Class

  npx ts-expressor make:controller user

UserController class created in ./src/app/controllers/user.controller.ts

Create Repository Class

  npx ts-expressor make:repository user

UserRepository class created in ./src/app/controllers/user.repository.ts

Create Validation Schema

  npx ts-expressor make:schema user

The file user.schema.ts has been created in the ./src/app/validateSchema directory.