kbiits / simple-ecommerce-microservices-grpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Ecommerce

Simple e-commerce built with Microservices Architetcture using GRPC for service to service communication

Instalation

Clone this repo

git clone https://github.com/kbiits/simple-ecommerce-microservices-grpc

Go to the project root directory

cd simple-ecommerce-microservices-grpc

Run start script

chmod u+x ./start.sh
./start.sh

The API is running on localhost:3000

To stop the app, just use docker compose

docker-compose down

Routes

Authentication : JWT as Bearer Token

http method routes desc
POST /auth/register register user
POST /auth/login login user
GET /product list products (require auth)
GET /product/{product_id} get product by id (require auth)
POST /product create product (require auth)
POST /order create order (require auth)

Design

backend high level design

About


Languages

Language:Go 93.9%Language:Shell 3.7%Language:Makefile 1.6%Language:Dockerfile 0.8%