This is an e-commerce API built with Django and Django REST framework. It provides endpoints for managing products and orders.
- Docker
- Docker Compose
- Python 3.11
- MySQL
-
Clone the repository:
git clone https://github.com/rushabhkd/ecom.git cd ecom -
Build and run the docker container
docker compose up --build
-
Running migrations
docker exec django-web ./manage.py migrate appWebserver should be up and running on
port 8000 -
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
- To run test locally run following command:
docker exec -it django-web ./manage.py migrate app