This repository aims to provide a starting point for developing a Python-based marketplace web application.
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.
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)- User registration and authentication
- Product listing and management
- Basic search functionality
- User-friendly interface
- Responsive design
- Python
- Flask
- SQLite
- HTML/CSS
- JavaScript
Follow these steps to set up the project on your local machine.
- Python installed on your machine
- pip (Python package installer)
- Install Python
- Install & upgrade pip
python -m ensurepip --upgrade
python get-pip.py
python -m pip install --upgrade pip- Clone this Repository
git clone https://github.com/guanshiyin28/E-Commerce-Python-Website.git- Direct to the directory
cd E-Commerce-Python-Website- Install requirements.txt
pip install -r requirements.txt- Run with Python and see through the localhost
python app.pyThis project is licensed under the Apache-2.0 License. See the LICENSE file for details.