This repository contains a Django project built with Django Rest Framework (DRF). Follow the instructions below to set up the project locally.
- Python (version 3.9.X)
-
Clone the repository:
git clone https://github.com/seniordev-ca/django-ecommerce.git
-
Navigate to the project directory:
cd django-ecommerce
-
Create a virtual environment:
python -m venv env
-
Activate the virtual environment:
- On Windows:
env\Scripts\activate
- On macOS and Linux:
source env/bin/activate
- Install the project dependencies:
pip install -r requirements.txt
- Set up the database:
python manage.py migrate
- Run the development server:
python manage.py runserver
- Create superuser if you want to create new products and see it on front-end
python manage.py createsuperuser
- Open your web browser and visit http://localhost:8000 to access the application.