Skip to content

Simple microservice with api-gateway built on node js and services built on go. All the internal service calls through gRPC.

License

Notifications You must be signed in to change notification settings

Gokuld6012/stores-micro-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Simple microservice with api-gateway built on node js, services built on go. All the internal service calls through gRPC.

Todo

  • DB integration
  • Authentication using JWT
  • CI Integration

Folder structure

project
│   README.md 
│
└───api-gateway (node js)
│   │   .dockerignore
│   │   .gitignore
│   │   docker-compose.yml
│   │   Dockerfile
│   │   package-lock.json
│   │   package.json
│   │   server.js
│   └───controllers
│   │    │____product.controller.js
│   │    │____auth.controller.js
│   │
│   └───proto
│   │    │____auth.proto
│   │    │____product.proto
│   └───routes
│   │    │____auth.routes.js
│   │    │____product.routes.js
│   └───services
│        │____index.js
│        │____service-list.js
│   
└───auth-service (golang)
│   │   Dockerfile
│   │   go.mod
│   │   go.sum
│   │   main.go
│   │   Makefile
│   └───proto
│        │____auth.pb.go
│        │____auth.proto
│   
└───product-service (golang)
│   │   Dockerfile
│   │   go.mod
│   │   go.sum
│   │   main.go
│   │   Makefile
│   └───proto
│        │____product.pb.go
│        │____product.proto

Getting started

# Clone the repo

# Change directory
cd api-gateway

# To run the api-gateway
docker-composer up

# Change directory
cd auth-service

## To build the docker
make docker-build

## To run the container
make docker-run

# Change directory
cd product-service

## To build the docker
make docker-build

## To run the container
make docker-run

About

Simple microservice with api-gateway built on node js and services built on go. All the internal service calls through gRPC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published