A backend e-commerce application built with Python and Flask for managing users, products, and orders.
- User registration and authentication
- Product creation, updating, and deletion
- Order creation and management
- Admin functionality and route access control
- Python
- Flask
- SQLAlchemy
- SQLite (for development)
- dotenv (for environment config)
e-commerce/ βββ admin_routes.py βββ app.py βββ config.py βββ customer_routes.py βββ models.py βββ toolz.py βββ user_routes.py βββ instance/ βββ migrations/ βββ venv/ βββ .env βββ .gitignore
-
Clone the Repository
git clone https://github.com/queenrashy/e-commerce.git cd e-commerce -
Create and Activate Virtual Environment python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies pip install -r requirements.txt
-
Create a .env File FLASK_APP=app.py FLASK_ENV=development SECRET_KEY=your_secret_key
-
Set Up the Database flask db init flask db migrate flask db upgrade
-
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