Giter Club home page Giter Club logo

ecom's Introduction

Go Ecom

ci-test badmath

Description

Go Ecom is a simple e-commerce project implemented in Go. The motivation behind building this project was to create a basic e-commerce system to learn and practice Go programming concepts.

The project aims to solve the problem of building a functional e-commerce API using Go. It provides a foundation for managing products, handling orders, and integrating with payment services.

Through this project, I learned how to structure and develop a REST API in Go, handle authentication and authorization, implement CRUD operations for products and orders, integrate with third-party payment services, and handle error responses.

Table of Contents

Installation

To install and run the project locally, follow these steps:

  1. Clone the repository: git clone https://github.com/paulodhiambo/ecom.git
  2. Navigate to the project directory: cd ecom
  3. Install dependencies: go mod tidy
  4. Set up the database and configure the connection details in the configuration file.
  5. Run the application: go run main.go

Usage

To use the Go Ecom API, follow the API documentation and interact with the available endpoints using tools like cURL, Postman, or any other HTTP client.

For example, to retrieve a list of products, send a GET request to /products:

GET /products

To add a product to the shopping cart, send a POST request to /cart with the product ID and quantity:

POST /cart
{
  "product_id": "123",
  "quantity": 2
}

For more detailed usage instructions and examples, please refer to the API documentation.

Credits

License

This project is licensed under the MIT License.

Features

  • Product management (CRUD operations)
  • Shopping cart functionality
  • Order management
  • Integration with payment services

How to Contribute

Contributions to Go Ecom are welcome! If you would like to contribute, please follow the guidelines outlined in CONTRIBUTING.md.

Migrate database

make migrateup

Tests

To run the tests for this project, use the following command:

make test

Make sure you have the necessary dependencies installed before running the tests.

ecom's People

Contributors

paulodhiambo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.