Giter Club home page Giter Club logo

start-up-e-commerce-python-website's Introduction

Startup E-commerce Python Website

This is a startup e-commerce website built using Python and Flask. It provides basic e-commerce functionality including product listing, user authentication, and shopping cart management.

Features

  • User registration and authentication
  • Product listing and detail views
  • Shopping cart functionality
  • Basic checkout process

Tech Stack

  • Python 3.8+
  • Flask 2.0.1
  • SQLAlchemy (Flask-SQLAlchemy 2.5.1)
  • Flask-Login 0.5.0
  • SQLite database

Project Structure

e-commerce-website/
│
├── app.py
├── models.py
├── routes.py
├── config.py
├── requirements.txt
│
├── templates/
│   ├── base.html
│   ├── index.html
│   ├── login.html
│   ├── register.html
│   ├── product_detail.html
│   └── cart.html
│
└── static/
    └── css/
        └── style.css

Setup and Installation

  1. Clone the repository:

    git clone https://github.com/JohnDev19/Start-up-E-commerce-Python-Website.git
    cd e-commerce-website
    
  2. Create a virtual environment and activate it:

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

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

    python
    >>> from app import db
    >>> db.create_all()
    >>> exit()
    
  5. Run the application:

    python app.py
    
  6. Open a web browser and navigate to http://localhost:5000

Usage

  • Register a new user account
  • Browse products on the home page
  • Click on a product to view its details
  • Add products to your cart
  • View and manage your cart

Contributing

This is a startup project and contributions are welcome. Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

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.