Skip to content

rushabhkd/ecom

Repository files navigation

E-commerce API

This is an e-commerce API built with Django and Django REST framework. It provides endpoints for managing products and orders.

Setup Instructions

Prerequisites

  • Docker
  • Docker Compose
  • Python 3.11
  • MySQL

Local Development (Running with Docker container)

  1. Clone the repository:

    git clone https://github.com/rushabhkd/ecom.git
    cd ecom
  2. Build and run the docker container

    docker compose up --build
  3. Running migrations

    docker exec django-web ./manage.py migrate app

    Webserver should be up and running on port 8000

  4. Restart webcontainer

    If you are developing and want to test the changes made in the api make sure to restart the container

    docker compose restart web

Running tests

  • To run test locally run following command:
    docker exec -it django-web ./manage.py migrate app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published