- Summary
- Getting started
- Class Diagram
- ERD Diagram
- Prerequisites
- Packages
- Environment variables file
- Running
- Postman collection
One of the main challenges of building an ecommerce platform is to keep an accurate list of products and their stocks up to date. It's a system that allows us to manage products for an hypothetical ecommerce platform.
Clone the repository.
Follow the instructions to complete the installation.
List of environment variables which you should configure in your OS
ECOM_LOG_LEVEL= # log level
ECOM_WRITE_LOGS_TO_CONSOLE= # boolean variable indicates writing variables to console
ECOM_PG_DB_HOST= # PostgreSQL DB host
ECOM_PG_DB_PORT= # PostgreSQL DB port
ECOM_PG_DB_USER= # PostgreSQL DB user
ECOM_PG_DB_PASSWORD= # PostgreSQL DB password
ECOM_PG_DB_NAME= # PostgreSQL DB name
- In your cloned directory.
- open your terminal and run:
go run main.go
The server will start at:
- Local: http://localhost:8888
you will find the postman collection here to get how to send an HTTP request in right way to the system.
You can get what is the right structure of JSON file to send requests and recieving responses from the postman collection after importing it in the Postman.