github.com/atheodosiou/TypeScript-Node-Express-Starter

A comprehensive project template to jump start a Node.js back-end development in TypeScript. ESLint, Jest, Mongoose, Prettier, Winston logger, morgan, code examples and type definitions, are included.

Open this visualization on its own page →

Contributors

1

Lines of Code

98

From

2021-12-11

To

2021-12-15

About atheodosiou/TypeScript-Node-Express-Starter

This is a comprehensive TypeScript starter template for Node.js backend development using Express. It provides a production-ready foundation with all essential tooling pre-configured and included, allowing developers to begin projects immediately without lengthy setup processes. The template is designed for the latest Active LTS release of Node.js.

The project bundles together a complete development stack featuring TypeScript 4.5, Express for HTTP handling, Mongoose for MongoDB object modeling, and Swagger UI for API documentation. Testing infrastructure is provided through Jest with code coverage reporting, while code quality is enforced via ESLint and Prettier. Logging capabilities come from Winston for application logs and Morgan for HTTP request logging. The template includes helpful utilities like an Axios wrapper as a singleton HttpClient class, example code for routes, controllers, and middlewares, and demonstrates API versioning patterns.

Developer experience is enhanced through Husky for git hooks that automatically run linting, formatting, and tests before commits, plus GitHub Actions and Travis CI configuration examples. The package includes a well-organized set of npm scripts for common operations like building, linting, formatting, testing, and development with watch mode. Everything is available under the MIT license and designed to be immediately functional for most Node.js projects.

Share this video