A minimalist starter template for building scalable Node.js applications with Express and TypeScript.
This template includes the following technologies and libraries:
- TypeScript: Strongly typed JavaScript for better code quality and maintainability.
- Express: Lightweight and flexible web framework for creating APIs and web applications.
- ESLint: Enforces code quality and style guidelines.
- Prettier: Ensures consistent code formatting.
- Husky: Automates Git hooks for running checks before committing code.
- Lint-Staged: Runs linters on staged files to ensure only valid code is committed.
- Nodemon: Automatically restarts the server during development.
- Yarn: Fast, reliable, and secure dependency management.
- Convict: Manages environment variables and configuration with validation and default values.
- Pino: High-performance logging library for structured and efficient logs.
- Helmet: Enhances security by setting various HTTP headers.
- Boom: Simplifies error handling with HTTP-friendly error objects.
- Class-Validator: Provides declarative validation for request data.
-
Clone the repository:
git clone https://github.com/GabrielMochi/express-typescript-template.git
-
Navigate to the project directory:
cd express-typescript-template -
Install dependencies:
yarn install
Start the development server with hot reload:
yarn devyarn dev: Start the server with hot reload.yarn lint: Run ESLint to check for code quality issues.yarn format: Format the code with Prettier.yarn build: Compile TypeScript into JavaScript.
This project is licensed under the Unlicense.