This GoLang project implements a robust backend system for an e-commerce application, focusing on the cart functionality as a microservice. It provides essential services for managing orders, users, authentication, and of course, shopping carts.
- Order Management Service(OMS): Handles order creation, process and fulfillment.
- User Management Service: Manages user registration, login and account details.
- Authentication Service
- Shopping cart service:
- Users can add and remove products from their carts
- Supports instant purchase functionality for a seamless checkout experience
- Address Managaement:
- Users can add, edit, and delete their shipping and billing addresses.
- Streamlines the checkout process by providing saved addresses.
- Product management:
- Users can view product details and search for specific items. (Full product management might be implemented in a separate microservice)
Make sure that your MongoDB username, password &URI is set in your .env
file at the root directory of this project.
You can start the project with below commands:
-
docker-compose up -d
-
go run main.go
You can use postman for API Endpoints tests. Here are some examples of endpoint tests:
Here is an example of a succesful signup request and response:
An example of a susccefull login:
This images shows adding a product for viewing:
This images shows an already added product:
This image shows the product after searching it:
Click here to access all the API Endpoints documentation for this project and how to run them.