Simple microservice with api-gateway built on node js, services built on go. All the internal service calls through gRPC.
- DB integration
- Authentication using JWT
- CI Integration
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
# 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