Skip to content

MehrazRumman/KachaMorich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KachaMorich

An Ecommerce WebApp

System Design

Untitled (2)

ER Diagram

drawSQL-image-export-2024-05-15

Use-case Diagram

Untitled

Features for Client

  • Sign Up: Clients can create an account on the platform by signing up.

  • Log In: Registered clients can log in to their accounts.

  • Purchase a Product: Clients can browse and purchase products from the platform.

  • Order Payment with bKash: Clients can choose bKash as a payment option for their orders.

  • Edit Profile: Clients can edit their profiles, including personal information and preferences.

  • Product Review: Clients can leave reviews and ratings for products they have purchased.

  • View Order List: Clients can view a list of their past and current orders.

Features for Admin

  • View User List: Admin can view a list of all registered users on the platform.

  • View Product List: Admin can access a list of all products available on the platform.

  • Edit Product: Admin can edit details of existing products, such as name, description, and price.

  • Make Admin: Admin can promote other users to admin status, granting them access to admin features.

  • Change Delivery Status: Admin can update the delivery status of orders, marking them as pending, shipped, delivered, etc.

  • Change Payment Status: Admin can update the payment status of orders, marking them as paid, pending, refunded, etc.

Tech Stack

Technology Description
Frontend ReactJS
State Management Redux
Backend Django
Django Rest Framework
Database PostgreSQL
Authentication JWT (JSON Web Tokens)
API Testing Postman

Setup Instructions

Django Backend

  1. Install Django:

    • You can install Django using pip, the Python package manager:
      pip install django
      
  2. Create a Django Project:

    • Create a new Django project using the following command:
      django-admin startproject project_name
      
  3. Create a Django App:

    • Create a Django app within your project using:
      python manage.py startapp app_name
      
  4. Install Django REST Framework (Optional but recommended):

    • Django REST Framework (DRF) is a powerful toolkit for building Web APIs in Django. Install it using:
      pip install djangorestframework
      
  5. Set Up Django Backend:

    • Define your models, views, and serializers (if using DRF) to create the necessary API endpoints for your React frontend to interact with.
  6. Run Django Development Server:

    • Start the Django development server:
      python manage.py runserver
      

ReactJS Frontend

  1. Install Node.js and npm:

    • React requires Node.js and npm (Node Package Manager) for managing dependencies. You can download and install Node.js from nodejs.org.
  2. Create a React App:

    • Create a new React app inside your Django project directory using:
      npx create-react-app frontend
      
  3. Proxy Requests from React to Django Backend (Optional but recommended):

    • During development, you might want to proxy API requests from your React app to the Django backend to avoid CORS issues. You can use the http-proxy-middleware package for this.
  4. Run React Development Server:

    • Start the React development server:
      cd frontend
      npm start
      
  5. Start Developing:

    • Now, you can start developing your application. Build your React components and connect them to the Django backend using API calls.
  6. Deployment:

    • For deployment, you'll typically need to configure your Django app to serve static files and configure your production server (e.g., Nginx, Apache) to serve both the Django app and the React frontend.

Screenshots

Screenshot from 2024-05-15 00-54-51 Screenshot from 2024-05-15 00-55-01 Screenshot from 2024-05-15 00-55-07 Screenshot from 2024-05-15 00-55-12 Screenshot from 2024-05-15 00-55-19 Screenshot from 2024-05-15 00-55-41 Screenshot from 2024-05-15 00-56-22

Screenshot from 2024-05-15 12-55-48

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published