dev-api-express
v0.0.3
Published
Cli for generate an express api template, with TypeScript or JavaScript, eslint and prettier config. You must install eslint and prettier extension.
Downloads
12
Maintainers
Readme
dev-api-express
Table of Contents
Usage
You can use dev-api-express directly with npx
, so there's no need to install it globally.
The CLI will guide you through selecting the language (TypeScript or JavaScript).
npx dev-api-express
Overview
dev-api-express is a CLI tool designed to quickly generate an Express API template with support for TypeScript or JavaScript. It comes pre-configured with ESLint and Prettier. This tool simplifies the setup process, allowing developers to focus on building their applications.
Features
- Express API Template: Quickly generate a new Express API project.
- TypeScript or JavaScript: Choose between TypeScript and JavaScript for your project.
- ESLint and Prettier: Integrated ESLint and Prettier configurations for code linting and formatting.
- No Installation Required: Use via
npx
without needing to install globally.
Project structure
TypeScript
├── .vscode
│ ├── extensions.json
│ └── settings.json
│ ├── public
│ │ ├── 404.html
│ │ ├── index.css
│ │ ├── index.html
│ │ |── index.js
│ │ └── node-icon.ico
├── src
│ ├── app
│ │ └── app.ts
│ ├── config
│ │ └── apiConfig.ts
│ ├── controllers
│ │ └── someController.ts
│ ├── middlewares
│ │ └── logger.ts
│ ├── routes
│ │ └── someRouter.routes.ts
│ ├── index.ts
├── tests
│ ├── controllers
│ │ └── someController.test.ts
│ ├── middlewares
│ │ └── logger.test.ts
├── dist
│ └── (Compiled TypeScript)
├── .env
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .prettierignore
├── .prettierrc
├── package.json
├── readme.md
├── vitest.config
└── tsconfig.json
Javascript
├── .vscode
│ ├── extensions.json
│ └── settings.json
├── public
│ ├── 404.html
│ ├── index.css
│ ├── index.html
│ |── index.js
│ └── node-icon.ico
├── src
│ ├── app
│ │ └── app.js
│ ├── config
│ │ └── apiConfig.js
│ ├── controllers
│ │ └── someController.js
│ ├── middlewares
│ │ └── logger.js
│ ├── routes
│ │ └── someRouter.routes.js
│ ├── index.js
├── tests
│ ├── controllers
│ │ └── someController.test.js
│ ├── middlewares
│ │ └── logger.test.js
├── .env
├── .eslintrc
├── .gitignore
├── .prettierrc
├── package.json
├── readme.md
└── vitest.config
Contributing
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on GitHub.
- Fork the repository.
- Create a new branch (git checkout -b feature/your-feature).
- Commit your changes (git commit -am 'Add new feature').
- Push to the branch (git push origin feature/your-feature).
- Open a pull request.