GithubHelp home page GithubHelp logo

lendral3n / kulinerklasik-microservices-grpc Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 4.0 121 KB

Microservices gRPC Golang

Makefile 3.38% Go 96.62%
gin go golang grpc grpc-go grpc-microservice microservices microservices-architecture

kulinerklasik-microservices-grpc's Introduction

KulinerKlasik-Microservices-gRPC

KulinerKlasik-Microservices-gRPC We are building a microservice architecture using Golang and gRPC. The architecture consists of three services: User Service, Menu Service, and Order Service. The User Service handles authentication and registration, the Menu Service manages product creation and retrieval, and the Order Service handles order management. To streamline communication between services, we are implementing an API Gateway. The API Gateway acts as a central entry point, routing client requests to the appropriate microservices. This architecture allows for independent development, deployment, and scaling of services, while providing a unified interface for clients.

Dependency repositories

Application Infrastructure

  1. API Gateway: Handles incoming HTTP requests
  2. Auth Service: Provides features such as Register, Login and generates Token by JWT
  3. Menu Service: Provides features such as Add Menu, Decrease Stock and Find Menu
  4. Order Service: The only feature we ship in this Microservice is Create Order

How to start ?

  • STEP 1 : We need to clone Service Auth
  • STEP 2 : Setup the environment in local.env like local.env.example according to the settings on your localhost
  • STEP 3 : Run command on project's terminal : go mod tidy and go mod vendor to constructs a directory named vendor in the main module's root directory that contains copies of all packages needed to support builds and tests of packages in the main module
  • STEP 4 : Run command Make Server or go run cmd/main.go as usualy
  • STEP 5 : Clone Service Menu
  • STEP 6 : Repeat STEP 2 until STEP 4
  • STEP 7 : Clone Service Order
  • STEP 8 : Repeat STEP 2 until STEP 4
  • STEP 9 : Dont forget to do STEP 2 until STEP 3 in this KulinerKlasik Services
  • STEP 10 : Execute command Make Server or go run cmd/main.go (again) in this KulinerKlasik Services

kulinerklasik-microservices-grpc's People

Contributors

lendral3n avatar

Stargazers

Faliqul Fikri Al Fauzani avatar Aloysius Yoko avatar  avatar Kurniawan avatar ルイタイゼン avatar Wahyu (WHYS) avatar Rizky Ramadhan avatar Muhammad Ali wildan avatar Aditya Eka avatar M Fariz Wisnu prananda avatar Muhammad Fikri Basa  avatar Bagas Julianto avatar Hafiz Caniago avatar Dicky Eka Satria avatar mulyan avatar Dicki Darmawan Saputra avatar Adi Primanda Ginting avatar Juan Daniel avatar Riyan Amanda Nasution avatar Sofyan Setiawan avatar A. Fauzi avatar Zero F avatar Mr. Alif Fauzi avatar  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.