Skip to content

Latest commit

 

History

History
110 lines (74 loc) · 2.3 KB

README.md

File metadata and controls

110 lines (74 loc) · 2.3 KB

E-Commerce Python Website

This repository aims to provide a starting point for developing a Python-based marketplace web application.



Purpose of This Repository

This repository serves as a foundational framework for developing a Python-based marketplace web application, encompassing core features such as user registration and authentication, product listing and management, basic search functionality, and a user-friendly interface, providing a robust starting point for developers seeking to build a dynamic and scalable online marketplace platform.



Demonstration

Here is a demonstration of the add_product function from app.py:

def add_product(name, description, price):
    product = {
        'name': name,
        'description': description,
        'price': price
    }
    # Code to add the product to the database
    return product

# Example usage
new_product = add_product('Sample Product', 'This is a sample product.', 19.99)
print(new_product)


Features

  • User registration and authentication
  • Product listing and management
  • Basic search functionality
  • User-friendly interface
  • Responsive design


Technologies Used

  • Python
  • Flask
  • SQLite
  • HTML/CSS
  • JavaScript


Project Setup

Follow these steps to set up the project on your local machine.

Prerequisites

  • Python installed on your machine
  • pip (Python package installer)

Steps to Run

  1. Install Python
  2. Install & upgrade pip
python -m ensurepip --upgrade
python get-pip.py
python -m pip install --upgrade pip
  1. Clone this Repository
git clone https://github.com/guanshiyin28/E-Commerce-Python-Website.git
  1. Direct to the directory
cd E-Commerce-Python-Website
  1. Install requirements.txt
pip install -r requirements.txt
  1. Run with Python and see through the localhost
python app.py


License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.