Giter Site home page Giter Site logo

mycharoka / nodejs-modular-monolith Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gustialfian/nodejs-modular-monolith

0.0 0.0 0.0 449 KB

Modular Monolith, The result of my research about software architecture

Shell 0.64% JavaScript 98.04% Dockerfile 1.32%

nodejs-modular-monolith's Introduction

Nodejs Modular Monolith

Getting Started

npm install

cp .env.example .env

docker run --name db --rm \
  -e POSTGRES_PASSWORD=sandbox \
  -e POSTGRES_USER=sandbox \
  -e POSTGRES_DB=sandbox \
  -p 6543:5432 \
  postgres:13-alpine

# manualy run schema

npm run dev

production

npm install -g pm2

pm2 start ecosystem.config.js
pm2 restart ecosystem.config.js
pm2 stop ecosystem.config.js
pm2 delete ecosystem.config.js

Component

  • domain module: modul yang berhubungan dengan bisnis proses
    • controller: melakukan request, response, validation
    • service: bisnis logic.
    • repository: satu2nya component yang secara langsung mengakses DB
    • plain function
    • plain object
  • shared module
    • plain function
    • plain object
    • constant
  • infastructure module
    • configs
    • database
    • logger
  • router.js: list route
  • server.js: bootstraping all module
  • app.js: entry point

nodejs-modular-monolith's People

Contributors

gustialfian avatar dependabot[bot] avatar artemnikolaev avatar aircrisp avatar gloomybrain 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.