1.0.3 ā€¢ Published 3 months ago

gen-express-cli v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

āœØ Features

  • šŸ“¦ Easy to use
  • šŸ“¦ TypeScript Support
  • šŸ“¦ ESM Support
  • šŸ“¦ Prettier & ESLint Support
  • šŸ“¦ Jest Support (Unit Test)
  • šŸ“¦ SuperTest Support (E2E Test)

šŸ“‚ Quick Start

npx gen-express-cli@latest <project-name>

cd <project-name>

npm run lint # for lint
npm run dev # for development
npm run build # for typescript build
npm run start # for production
npm run test # for unit test
npm run test:e2e # for e2e test

šŸ“– Usage

Usage

npx gen-express-cli --help

Usage: gen-express-cli [project-name]

Options:
  -v, --version                     output the current version
  -t, --template <template-name>    choose express template (choices: "javascript", "typescript")
  -l, --linter <linter-name>        choose linter (choices: "eslint", "none")
  -u, --unit-test <unit-test-name>  choose unit test (choices: "jest", "none")
  -e, --e2e-test <e2e-test-name>    choose e2e test (choices: "supertest", "none")
  -h, --help                        display help for command

šŸ“‚ Folder Structure

ā”œā”€ src
ā”‚  ā”œā”€ index.ts
ā”‚  ā”œā”€ __tests__
ā”‚  ā”‚  ā””ā”€ user.spec.ts
ā”‚  ā”œā”€ e2e
ā”‚  ā”‚  ā””ā”€ user.spec.ts
ā”‚  ā”œā”€ controllers
ā”‚  ā”‚  ā””ā”€ user.ts
ā”‚  ā”œā”€ models
ā”‚  ā”‚  ā””ā”€ user.ts
ā”‚  ā””ā”€ routes
ā”‚     ā”œā”€ index.ts
ā”‚     ā””ā”€ user.ts
ā”œā”€ .eslintrc.json
ā”œā”€ .gitignore
ā”œā”€ .prettierrc.json
ā”œā”€ jest.config.ts
ā”œā”€ package-lock.json
ā”œā”€ package.json
ā”œā”€ README.md
ā””ā”€ tsconfig.json

šŸ“š License

This project is licensed under the terms of the MIT license.

šŸ¤ Contributing

Contributions, issues and feature requests are welcome! Feel free to give your feedback and give me a star if you like this project.

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago

0.0.0

3 months ago