Code Monkey home page Code Monkey logo

node-microsite-template's Introduction

This is a NodeJS Template Project

It provides the following features out of the box -

  1. Database agnostic design using TypeOrm
  2. Uses TypeDi for dependency injection
  3. Uses our in house gc-router for routing -
    • Auto-exposes an endpoint at /openapi with the full swagger documentation including all endpoints and request/response models
    • Allows simple CORS configurtion
  4. Has required helm and docker config files for a quick K8 deployment
  5. Wired in with our in house gc-logger -
    • Hooks into NodeJs call stack to preserve and include a requestId with every log message allowing easy batching of log messages related to a request
    • Hooks into TypeOrm to auto log (can be turned off in prod) all SQL queries executed via TypeOrm
    • Support for console and file logs. File logs can be configured to auto-roll with custom time windows. Old log files will be auto compressed using gzip.
    • Experimental support for OpenTracing
    • Handles NodeJs unhandled promises and unhandled exception logging
  6. Comes with ESLint (airbnb + custom) and Prettier wired in
  7. Wired in with Husky, LintStaged and commitLint for auto linting on commits

Note: Don't forget to replace ATemplate with your project name.

node-microsite-template's People

Contributors

adhityan avatar dependabot[bot] avatar adarsh-gc avatar mend-bolt-for-github[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.