1.0.3 ā¢ Published 3 months ago
gen-express-cli v1.0.3
āØ 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
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.