3.2.2 • Published 9 months ago

gen-express-cli v3.2.2

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

šŸ“˜ Introduction

gen-express-cli is a alternative to express-generator with more features and easy to use. It is a command line tool that helps you to generate a new express project with TypeScript, ESM, Docker, Prettier, ESLint, Jest, Swagger, and Path Alias.

✨ Features

  • šŸ“¦ Easy to use
  • šŸ“¦ TypeScript Support
  • šŸ“¦ ESM Support
  • šŸ“¦ Docker Support
  • šŸ“¦ Prettier & ESLint Support
  • šŸ“¦ Jest Support (Unit Test)
  • šŸ“¦ Swagger Support
  • šŸ“¦ Path Alias

šŸ“‚ Quick Start

npx gen-express-cli@latest <project-name>
cd <project-name>
npm run dev # for development
npm run start # for production
npm run build # for typescript build
npm run lint # for eslint
npm run format # for prettier
npm run test # for unit test
npm run swagger # for build swagger

docker build -t <image-name> .

šŸ“– 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                      choose linter (default: false)
  -u, --unit-test <unit-test-name>  choose unit test (choices: "jest", "none")
  -a, --api-doc                     use swagger for API documentation (default: false)
  -d, --docker                      use docker for containerization (default: false)
  -al, --alias                      use alias for import (default: false)
  -m  --manager <package-manager>   choose package manager (choices: "npm", "yarn")
  -h, --help                        display help for command

šŸ“‚ Folder Structure

ā”œā”€ src
│  ā”œā”€ index.ts
│  ā”œā”€ __tests__
│  │  └─ user.spec.ts
│  ā”œā”€ controllers
│  │  └─ user.ts
│  ā”œā”€ models
│  │  └─ user.ts
│  └─ routes
│     ā”œā”€ index.ts
│     └─ user.ts
ā”œā”€ .dockerignore
ā”œā”€ .env
ā”œā”€ .env.development
ā”œā”€ .eslintrc.json
ā”œā”€ .gitignore
ā”œā”€ .prettierrc.json
ā”œā”€ apidoc.json
ā”œā”€ Dockerfile
ā”œā”€ jest.config.ts
ā”œā”€ package-lock.json
ā”œā”€ package.json
ā”œā”€ process.env.d.ts
ā”œā”€ README.md
ā”œā”€ swagger.ts
└─ tsconfig.json

šŸ“¦ Dependencies

[
  "dependencies": {
    "cors": "^2",
    "cross-env": "^7",
    "dotenv": "^16",
    "express": "^4",
    "swagger-ui-express": "^5"
  },
  "devDependencies": {
    "nodemon": "^3",
    "typescript": "~5.3",
    "ts-node": "^10",
    "@types/cors": "^2",
    "@types/express": "^4",
    "@types/node": "^20",
    "eslint": "^8",
    "@typescript-eslint/eslint-plugin": "^6",
    "eslint-config-prettier": "^9",
    "eslint-config-standard-with-typescript": "^43",
    "eslint-plugin-import": "^2",
    "eslint-plugin-n": "^16",
    "eslint-plugin-prettier": "^5",
    "eslint-plugin-promise": "^6",
    "prettier": "^3",
    "eslint-plugin-jest": "^27",
    "jest": "^29",
    "ts-jest": "^29",
    "@types/jest": "^29",
    "swagger-autogen": "^2",
    "@types/swagger-ui-express": "^4",
    "tsc-alias": "^1",
    "tsconfig-paths": "^4",
    "typescript-transform-paths": "^3"
  }
]

šŸ“š 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.

3.2.2

9 months ago

3.2.1

9 months ago

3.2.0

9 months ago

3.1.1

9 months ago

3.2.0-beta.1

9 months ago

3.1.0-beta.1

10 months ago

3.1.0-beta.2

10 months ago

3.1.0-beta.3

10 months ago

3.1.0

10 months ago

3.0.0-beta.2

10 months ago

3.0.4

10 months ago

3.0.3

10 months ago

3.0.2

10 months ago

3.0.1

10 months ago

3.0.6

10 months ago

3.0.5

10 months ago

3.0.0

10 months ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.1.3

1 year ago

1.0.4

1 year ago

1.2.1

1 year ago

1.1.2

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.4

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago