Mini project of ecommerce specific cart service.
This application only contain cart, order service and light products service
the products service only show searched product(s)
What you can do in this app?
-
Search Product(s)
-
Add item to cart
-
Get cart info
-
Delete item from cart
-
Reset the cart
-
Checkout the cart
Makesure install Docker in your machine https://docs.docker.com/engine/install/
clone this repo
git clone https://github.com/christianmahardhika/mini-be-services-ecommerce.git
create <.env> file and fill this variable
DB_USER=postgres
DB_PASS=root
DB_PORT=5432
DB_HOST=db
DB_NAME=ecommerce
DB_SSL_MODE=disable
PORT=8080
ALLOWED_ORIGINS=["*"]
ALLOWED_HEADERS=["*"]
this application use makefile to run build, test, deploy, etc
Start the application
make docker-start
Port:
locakhost:8080
here the json collections https://documenter.getpostman.com/view/4625022/UVysxFmE
run testing command
make test
This app build follow clean code pattern by Uncle Bob https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html the idea is for scalability. The app can be separate into services each domain easily because the business process separate with controller (http server) and data (as repository).
You can pull the image on GHCR here
docker pull ghcr.io/christianmahardhika/mini-be-services-ecommerce:latest