Create Express Application with TypeScript
This is a starter template for Express web framework for Node.js using TypeScript.
Features
- TypeScript support with absolute imports and path aliases
- Live reload with nodemon
- Testing support with Jest
- Formatting support with Prettier
- Linting support with ESLint
- Logging support with Pino
Usage
To use this template, run one of the following commands:
npx @onsever/create-express-ts-app <project-name>
npx @onsever/create-express-ts-app .
npx @onsever/create-express-ts-app ./
Commands
-
npm run build
- Build the project -
npm run start
- Start the server in production mode -
npm run dev
- Start the server in development mode with live reload -
npm run lint:check
- Check for linting errors -
npm run lint:fix
- Fix linting errors -
npm run prettier:check
- Check for formatting errors -
npm run prettier:fix
- Fix formatting errors -
npm run test
- Run tests -
npm run test:watch
- Run tests in watch mode