← All repositories

goldbergyoninodebestpractices

105,100 stars10,692 forksDockerfilecc-by-sa-4.01 view
twitter.com/nodepractices

Nodebestpractices

Features

  • Application MonitoringImplement monitoring to detect issues proactively by defining and tracking key performance and health metrics.
  • Base ImagesUse small base images to reduce the attack surface and resource consumption.
  • Layered ArchitecturesOrganize application components into three distinct layers: entry-points for request handling, domain for business logic, and data-access for database interactions.
  • Modular ArchitecturesOrganize code into autonomous business modules to reduce mental overhead and deployment risk by isolating domains like users, orders, and payments.
  • Hierarchical ConfigurationsA configuration pattern that combines hierarchical file-based settings with environment variable overrides, supporting validation and secure handling of sensitive data.
  • Brute-Force ProtectionsImplement rate limiting and account lockout mechanisms to prevent brute-force attacks against authentication endpoints.
  • Output EscapingEscape HTML, JavaScript, and CSS output to prevent cross-site scripting attacks.
  • Test Coverage MetricsUse code coverage tools to identify untested code paths and validate the effectiveness of test patterns.