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 docs folder.
Tech stack: Go, graphQL, gRPC
Prerequisites:
- Make sure you have
Makein your local environment to run app usingMakefile - Make sure you have
dockerin your local environment - Make sure you're not using port
8989and9000on 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
Makerun commandmake up, if not run commanddocker-compose up --build - Wait until docker image has built
- Run example request from
e-commerce.postman_collection.jsonon 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 downordocker-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:



