MarwanGalal746 / Ecommerce-Product-Manager

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ecommerce-Product-Manager

Table of contents


Summary

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.

Getting Started

Clone the repository.
Follow the instructions to complete the installation.

Class Diagram

ERD Diagram

Prerequisites

Packages

Environment variables file

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

Running

  • In your cloned directory.
  • open your terminal and run:
go run main.go

The server will start at:

Postman collection

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.

About

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.


Languages

Language:Go 100.0%