Skip to content

Latest commit

Β 

History

History
64 lines (45 loc) Β· 1.51 KB

File metadata and controls

64 lines (45 loc) Β· 1.51 KB

E-Commerce Backend

A backend e-commerce application built with Python and Flask for managing users, products, and orders.

Features

  • User registration and authentication
  • Product creation, updating, and deletion
  • Order creation and management
  • Admin functionality and route access control

Tech Stack

  • Python
  • Flask
  • SQLAlchemy
  • SQLite (for development)
  • dotenv (for environment config)

πŸ“ Project Structure

e-commerce/ β”œβ”€β”€ admin_routes.py β”œβ”€β”€ app.py β”œβ”€β”€ config.py β”œβ”€β”€ customer_routes.py β”œβ”€β”€ models.py β”œβ”€β”€ toolz.py β”œβ”€β”€ user_routes.py β”œβ”€β”€ instance/ β”œβ”€β”€ migrations/ β”œβ”€β”€ venv/ β”œβ”€β”€ .env β”œβ”€β”€ .gitignore

βš™οΈ Setup Instructions

  1. Clone the Repository

    git clone https://github.com/queenrashy/e-commerce.git
    cd e-commerce
    
  2. Create and Activate Virtual Environment python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate

  3. Install Dependencies pip install -r requirements.txt

  4. Create a .env File FLASK_APP=app.py FLASK_ENV=development SECRET_KEY=your_secret_key

  5. Set Up the Database flask db init flask db migrate flask db upgrade

  6. Run the Application flask run Visit: http://localhost:5000

Usage Use tools like Postman to test API endpoints for: -Users -Products -Orders -Admin routes

🀝 Contributing Feel free to fork this repo and submit a pull request for improvements or bug fixes. 6. Run the Application