Git Product home page Git Product logo

e-commerce's Introduction

Ecommerce Api

The Ecommerce API is designed to power ecommerce platforms with essential features such as authentication, authorization, product management, order processing, and cart management.

Getting Started

To get started with this project, follow the steps below:

  1. Clone the repository: git clone https://github.com/samresh9/e-commerce.git

  2. Install dependencies: npm install

  3. Clone sample.env file at the root of your project to create .env file.

  4. Start the project:

  • For running in development mode :

    npm run start:dev
    
  • For running in production mode:

    npm run start:prod
    

API Reference

Base URL

The base URL for all API endpoints is http://localhost:3000

Api Documentation

The URL for API documentation with Swagger: http://localhost:3000/api/docs

Git Hooks and Husky

We utilize Husky, a Git hook tool, to enforce certain actions and maintain a consistent workflow within our project. Git hooks are scripts that run before or after specific Git events.

  • Pre-commit Hook: We have setup the pre-commit hook that runs code formatting scripts and linters to ensure code consistency before committing changes.

Please ensure that your code meets the required standards and passes the necessary checks before committing or pushing changes.


Environment Variables

Certain parts of our application require the presence of environment variables for proper configuration. These variables are typically stored in a .env file at the root of the project.

Before running the project locally, make sure to create a .env file and you can clone the sample.env and fill your value accordingly. Log related configuration have default value, therefore do not require values from .env.

e-commerce's People

Contributors

samresh9 avatar dikshyaghale avatar

Watchers

 avatar

e-commerce's Issues

Setup user address Api

  • Create a user_address entity that stores user's billing and shipping address.
  • A user can have multiple addresses.
    ERD

Steup Cart and Order Api

Cart API Implementation

  • Create a Cart entity to represent the items in the shopping cart.
  • Develop API endpoints for adding, updating, and removing items from the cart.
  • Integrate cart with Order to place order of cart items
  • Implement functionality to retrieve the current contents of the cart.
    Order API Implementation
  • Design an Order entity to store order details, including items, quantities, and total price.
  • Establish one to many relationship with OrderItem entity
  • Develop API endpoints for placing and confirming orders.
  • Setup stock management service when order is placed

Refrence to ERD

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.