GithubHelp home page GithubHelp logo

nyandrianinamamy / nodejs-microservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 744 KB

A NodeJS TypeScript Microservice Clean Architecture

License: BSD 3-Clause "New" or "Revised" License

TypeScript 100.00%

nodejs-microservice's Introduction

NodeJS TypeScript Microservice Architecture

A non-monolithic approach to a highly scalable architecture based on NodeJS, TypeScript, MongoDB and Docker.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You need to have MongoDB installed in your local environment Install MongoDB

If you want to build a docker image you need a local Docker environment also Install Docker

Installing

A step by step series of examples that tell you how to get a development env running

Clone the project

git clone https://github.com/nyandrianinamamy/nodejs-microservice.git
cd nodejs-microservice

Create environment files

# .env, for common environment variable
APP_ID=nodejs-microservice
# .env.test, for test environment variable
LOG_LEVEL=debug
# .env.production, for production environment variable
LOG_LEVEL=production

Install dependencies

npm install

Run

npm run dev

Test if everything's okay

curl localhost:4004/_health

Should return the running time

Running the tests

Unit testing

npm run test

Authors

License

This project is licensed under the BSD License - see the LICENSE.md file for details

nodejs-microservice's People

Contributors

nyandrianinamamy avatar nyhasina 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.