Skip to content

iamuditg/go-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

eCommerce Project

This is an eCommerce project build using go programming. It provides APIs to retrieve and create products.

Prerequisites

Before running the project, ensure that you have the following dependencies installed on you machine.

  • Docker
  • Docker Compose

Getting Started

Follow the steps below to run the project:

  1. Clone the repository to your local machine:

    git clone <repository.url>
    
  2. Navigate to the project directory:

    cd ecommerce
    
  3. Update the database configuration: Open products/resources/yml/db.yaml file and pdate the following properties.

    • host (should be the hostname or IP address of your database container)
    • port (should match the exposed port of your database container)
    • user (the database username)
    • password (the database password)
    • name (the name of the database)
  4. Build and run the project using Docker compose:

    docker-compose up --build
    

the command will build the docker images and start the container for the application and the database

  1. Once the containers are running. you can access the application at http://localhost:8000

API Endpoints

  • GET/products - Retrieve all products
  • POST/products - Create a new product

About

full stack e-commerce website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published