N9 Node Routing

screenshot of N9 Node Routing
express

Express app skeleton based on routing-controllers

Overview

The @neo9/n9-node-routing package is an impressive tool for developers who wish to streamline their Express application builds using TypeScript and decorators. It simplifies the integration of certain functionalities, enabling the creation of well-structured applications with less boilerplate code. Whether you're a seasoned developer or just starting out, this package offers a robust solution for building modern Node.js microservices.

With its recent updates and features, @neo9/n9-node-routing enhances development efficiency, supports best practices, and aligns with the latest changes in its dependencies, making it a wise choice for anyone looking to leverage the power of TypeScript in their Node.js applications.

Features

  • TypeScript Support: Fully supports TypeScript, ensuring type safety and improving code maintainability.
  • Decorator Usage: Utilizes decorators to reduce boilerplate code, enhancing readability and structure in the application.
  • Unified HttpClient: Incorporates a unified HttpClient using got, which allows for the efficient execution of multiple HTTP calls in a single operation.
  • Configuration Management: Automatically loads configuration based on the environment (dev, pre-prod, etc.) and provides clear logging of the startup process.
  • Prometheus Metrics Enabled: Includes Prometheus metrics by default, aiding in monitoring and analysis of application performance.
  • OpenAPI Documentation: Offers API documentation in OpenAPI 3.0 format, along with a Swagger UI for easy access and testing of endpoints.
  • Lifecycle Hooks: Introduces new lifecycle hooks like callbacksBeforeShutdown and AfterExpressEnded, granting developers greater control over application behavior during shutdown and request processing.
  • Startup Scripts: Utilizes .init.ts and .started.ts files to manage app initialization and startup routines seamlessly.
express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.