SIMPLE E-COMMERCE
This is prototype of e-commerce microservices backend system.
This microservices backend system built with Go programming language with graphQL as a gateway server and gRPC as a services.
System design and usecase diagram of this backend system is provided on
Tech stack: Go, graphQL, gRPC
Prerequisites:
- Make sure you have
Make
in your local environment to run app usingMakefile
- Make sure you have
docker
in your local environment - Make sure you're not using port
8989
and9000
on your other application while running this project
- Move to base directory project on top of all services (align with docker-compose.yml)
- If you have
Make
run commandmake up
, if not run commanddocker-compose up --build
- Wait until docker image has built
- Run example request from
e-commerce.postman_collection.json
on your postman app or open your chrome browser with this urlhttp://localhost:8989/
then copy the example request into graphql playground schema query - To stop this application, run command
make down
ordocker-compose down
This project is consists of unit tests, to run the test you have to install mockery
first. See https://github.com/vektra/mockery.
Then, you can go into unit test files *_test.go
on your vscode and click on run package tests
Results: