Git Product home page Git Product logo

e-commerce-django's Introduction

E-commerce | StyleSwap

code on gitlab

styleswap.mp4

1. Introduction

1.1 Description

This project is a fully functional online marketplace that allows users to browse and purchase clothing items from various categories. The primary aim of this project was to explore the integration of full-stack development, combining a Django Rest Framework backend with a Vue js frontend.

One of the key features of this project is the integration of a payment system, which was achieved using Stripe. This allows for secure and reliable payment processing for buyers and sellers. Additionally, the project includes an example of Dockerization, demonstrating how the application can be deployed using Nginx.

1.2 Main features

  • User authentication and registration.

  • Product catalog: users can view a catalog of clothing items.

  • Search and filtering: users can search for clothing items by keyword.

  • Users can view their purchase history.

  • Shopping cart.

  • Payment processing.

  • Swagger API.

  • Docker and Nginx.

  • Configuration to deploy on a private serve.

1.3 Limitations & Unknowns

  • learning vue js
  • use Stripe

2. Architecture

The proposed system is a web application that will utilize the Django Rest Framework to create an efficient and secure API for communication with the database. This API will serve as the backbone of the system, allowing it to receive requests from the frontend interface, which will be created using Vue.js and Bulma.

2.1 Data Base Structure

image

2.2 System Context Diagram

image

2.3 Deploy diagram

image

Installing and running the project

  1. Create a virtual environment:
    python -m venv venv
  2. Activate virtual environment:
    venv\Scripts\activate.bat - для Windows
    source venv/bin/activate - для Linux и MacOS
  3. Install poetry:
    pip install poetry
  4. Enter the virtual environment:
    poetry shell
  5. Install dependencies:
    poetry install
  6. Installing pre-commit hooks to run linters before commit:
    pre-commit install
  7. Install PostgreSQL from Docker:
    docker-compose up -d
  8. Apply migrations to database:
    python src/manage.py migrate
  9. Server start:
    python src/manage.py runserver

Deploy project

  1. deploy with docker-compose:
    docker-compose -f docker-compose.prod.yml up -d

e-commerce-django's People

Contributors

juan-camilo-suarez avatar

Watchers

 avatar

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.