@haislin/create-express-ts
v1.0.4
Published
Create-Express-ts is a package that provides a template for a Node.js Express server using TypeScript. It includes features such as CORS support, rate limiting, code styling enforcement, and automatic server restart in development mode. The package is eas
Downloads
3
Readme
Create-Express-TS
Create-Express-ts is a package that provides a template for a Node.js Express server using TypeScript. It includes features such as CORS support, rate limiting, code styling enforcement, and automatic server restart in development mode. The package is easy to install and use, and can be easily configured to fit your specific needs. With this template, you can quickly set up a new Express server with best practices and modern tools already in place.
Installation
Install with npx
npx @haislin/create-express-ts@latest my-project
cd my-project
Usage
- Start the development server
npm run dev
- Build the project
npm run build
- Start the production server
npm start
Features
- Node.js Express server using TypeScript
- CORS support using the cors package
- Rate limiting using the express-rate-limit package
- Code styling enforced using ESLint and Prettier (configured to follow Airbnb's style guide)
- Automatic server restart in development mode using Nodemon