This is a boilerplate project for building Express APIs using TypeScript. It includes logging middleware with Morgan and Winston.
Clone the repository and install dependencies:
git clone https://github.com/yourusername/express-ts-api-boilerplate.git
cd express-ts-api-boilerplate
npm install
To build the project:
npm run build
To start the server:
npm start
For development with hot-reloading:
npm run dev
To run tests:
npm test
- express: "^4.18.2"
- body-parser: "^1.20.2"
- cookie-parser: "^1.4.6"
- cors: "^2.8.5"
- dotenv: "^16.3.1"
- morgan: "^1.10.0"
- nodemon: "^3.0.1"
- winston: "^3.9.0"
- @typescript-eslint/eslint-plugin: "^5.59.11"
- @typescript-eslint/parser: "^5.59.11"
- eslint: "^8.43.0"
- jest: "^29.5.0"
- prettier: "^2.8.8"
- ts-jest: "^29.1.0"
- ts-node: "^10.9.1"
- typescript: "^5.1.3"
- @types/morgan: "^1.9.4"
- @types/cookie-parser: "^1.4.3"
- @types/cors: "^2.8.13"
- @types/express: "^4.17.17"
- @types/node: "^20.3.1"
This project is licensed under the MIT License - see the LICENSE.md file for details.