Giter Site home page Giter Site logo

codekalimi / express-microservice-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pradeepjaiswar/express-microservice-boilerplate

0.0 0.0 0.0 200 KB

Boilerplate for writing microservice using Expres. Pre-loaded with basic components like Mongo, Redis, Kafka, Logger to get quickly started.

JavaScript 5.65% TypeScript 93.57% HTML 0.12% Dockerfile 0.66%

express-microservice-boilerplate's Introduction

Express Microservice Boilerplate

An express-based bootstrapping module for building microservices with Node JS. The boilerplate comes with preloaded components to get you started quickly to focus business logic code. We have been using this boilerplate for some time on production to run many of our node js microservices.

Preloaded Component

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <this-repository-url>
  • change into the new directory
  • npm install

Running / Development

  • npm run dev

Boilerplate comes with below in-built routes

Default - Default for demo
Visit http://localhost:8080/v1/default

Health check - Can be used for adding a service health check logic
Visit http://localhost:8080/v1/default

Pug demo - templating integration https://pugjs.org/api/getting-started.html
Visit http://localhost:8080/v1/pug_demo

Mongo - Mongo for demo
Visit http://localhost:8080/v1/mongo_demo

Redis - Redis for demo
Visit http://localhost:8080/v1/redis_demo

Build

npm run build

Uses Gulp Gulp for TypeScript build

FOLDER STRUCTURE

config
└───prod
│   prod_config
└───test
│   test_config
└───uat
│   uat_config
deployment
locales
│   english-us
logger
│   winston-logger-setup  
src
└───boot
│   └───initializers
│         initializer-1
│         initializer-2
│         ...
│   boot-file
└───controllers
│     controller-1
│     controller-2
│     ...
└───middlewares
│     middleware-1
│     middleware-2
│     ...
└───models
│     model-1
│     model-2
│     ...
└───routes
│     route-1
│     route-2
│     ...
└───services
│     service-1
│     service-2
│     ...
└───utils
│     util-1
│     util-2
│     ...
└───tests
│     test-1
│     test-2
│     ...

Comments/issues

F-f-fork it, baby.

express-microservice-boilerplate's People

Contributors

pradeepjaiswar avatar dependabot[bot] 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.