Skip to content

mateussiil/microservices-nodejs-ecommerce

Repository files navigation

FIRST BACKEND

(WIP): This is an enterprise scale advanced microservice pattern with REST API and GRPC Microservices. Want to ask Mateus Oliveira questions, follow me on my the twitter :)

License Code Size Version Top Language Top Language

Description

This should be the go to backend base for your next scalable project. This is a proof of concept project designed to be extremely slim and scalable, with distributed data request and process handling, built from the ground up for production use.

Features

Software features

  • ✅ Software as a Service
  • ✅ Authentication by stateful session (Password)
  • ✅ User
  • ✅ REST API
  • ✅ GRPC Microservice
  • ✅ Emailing Queue
  • ✅ Payment (Stripe)
  • ✅ SaaS Plans (Stripe)
  • ✅ (WiP) Webhooks

Folder Structure

Senior candidate in the folder structure is the /app folder. This folder contains all executable programs or in this case microservices

  • /app/auth-service The access microservice handles access token management for each tenant in the system. It also validates current tenant credentials against a tenant specific resources. It is the gate keeper for your tenant api.
  • /app/billing-service The billing microservice manages billing and payment commands. It is tightly integrated with Stripe, but can be easily replaced.
  • /app/products-service The products microservice manages products and prices commands. It is tightly integrated with Stripe, but can be easily replaced.
  • /app/products-service The products microservice manages products and prices commands. It is tightly integrated with Stripe, but can be easily replaced.
  • /app/email-service The email microservice manages emails sent.

Configuration

Before starting the services, please added the variables.

Usage

With Docker locally

$ docker-compose up --build

Installation

$ yarn install

Running the microservices

Run each service in a separate terminal:

yarn build:ci
  • Except for email-service.

node apps/auth-service/src/index.js  
node apps/email-service/src/index.js  
node apps/billing-service/src/index.js  
node apps/products-service/src/index.js  

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published