Code Monkey home page Code Monkey logo

microservices-typescript's Introduction

Mircroservice Typescript

An microservices app created with Express.js, Typescript, MongoDB, BullJS, Docker, Kubernernetes, Ingress-NGINX & NATS.

Getting Started

requirements

Available Commands

To install INGRESS-NGNIX

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.1/deploy/static/provider/cloud/deploy.yaml

To run all services at parallel

$ skaffold dev

To set a JSON web token secret

$ kubectl create secret generic jwt-secret --from-literal=JWT_KEY=yourTokenSecret

To set a STRIPE secret (needed for payments service) Create your STRIPE account and get the secret

$ kubectl create secret generic jwt-secret --from-literal=JWT_KEY=sk_test_4eC39HqLyjWDarjtT1zdp7dc

Check all created secrets

$ kubectl get secrets

Developement setup

We need to edit the host file of our computer to identify our custom route in dev environment.

Find Host file

Add 127.0.0.1 ticketing.dev to the host file

Edit Host file

Troubleshooting

You may face this error in Chrome Browser or Chromium based browsers

Chrome Error

To fix the error ->

  • Click on the active tab of the browser
  • Type thisisunsafe
  • The error should gone by now

Fix Chrome Error

Service's overview

Service overview

Mircroservice Architecture

Service Architecture

Events for communicating between Mircroservice's through NATS

NATS Events

Developement Flow

Dev Flow

microservices-typescript's People

Contributors

pranta-barua007 avatar

Stargazers

 avatar  avatar

Watchers

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