Skip to content

Configuration for a production ready express app with working sample APIs, logging, testing & documentation

Notifications You must be signed in to change notification settings

varmeh/express-configuration

Repository files navigation

Express App Code Standardization

The intent of this folder is to standardize code across team members in a express based project.

It provides consitency in following:

  • code styling
  • linting
  • logging

Vscode extensions and lint libraries are used to enforce standards.

Extensions Required:

VSCode settings files configured to enforce these extensions across team.

Add these files to your react project to code styling & linting benefits.

Configuration Files

  • .prettierrc.json - prettier extension configuration
  • .eslintrc.json - eslint extension configuration
  • .babelrc - babel configuration for es6 modules
  • jest.config.js - jest configuration
  • .vscode
    • extension.json - recommends user to download usefult extensions
    • settings.json - vscode file to enforce prettier as default formatter

Production Grade Logging

Logging has been configured using following modules:

Logs are transported to:

  • console
  • file
  • datadog (if enabled)

API Documentation

API documentation is available with both Swagger & Redoc.

API Docs Links: