mkumm14 / online-marketplace-g1

0 stars 0 forks source link

Online Marketplace

This is an online marketplace application built with Django. It allows users to register, log in, browse products, add items to their cart, apply discount codes, and checkout.

Table of Contents

Features

Installation

Using Docker

  1. Clone the repository:

    git clone https://github.com/mkumm14/online-marketplace-g1.git
    cd online-marketplace-g1
  2. Build and run the Docker containers:

    docker-compose -f docker-compose.dev.yml up --build
  3. Run migrations and collect static files:

    docker-compose exec web python manage.py migrate
    docker-compose exec web python manage.py collectstatic --noinput
  4. Create a superuser:

    docker-compose exec web python manage.py createsuperuser

Without Docker

  1. Clone the repository:

    git clone https://github.com/mkumm14/online-marketplace-g1.git
    cd online-marketplace-g1
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Set up the database:

    python manage.py migrate
  5. Collect static files:

    python manage.py collectstatic --noinput
  6. Create a superuser:

    python manage.py createsuperuser
  7. Run the development server:

    python manage.py runserver

Usage