This E-Commerce App is a web application created for my Module 3 project at Coding Temple. It was designed to facilitate the online shopping experience at a coffee shop, and is loosely based on the 1990's - early 2000's sitcom, FRIENDS.
The app allows you to add, modify and delete users, orders and products (inventory), as well as add products to individual orders and run various "reporting" (GET) requests to return the content of the various tables included in the database.
The app is built using Flask, SQLAlchemy, and Marshmallow for the backend, and it connects to a MySQL database.
- Users: add, modify, delete
- Orders: add, modify, delete
- Products: add, modify, delete
- Add/Remove products from orders
- "Reporting" (GET requests) for all DB tables
To install and run the E-Commerce App locally, follow these steps:
-
Clone the repository:
git clone https://github.com/jenplanque/ecommerce_API.git cd ecommerce_API
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up the database:
flask db init flask db migrate flask db upgrade
-
Run the application:
flask run
- Python 3.9 or higher
- MySQL database
- Flask
- SQLAlchemy
- Marshmallow
-
Start the Flask development server:
flask run
-
Open your web browser and navigate to
http://localhost:5000
. -
Use the provided endpoints to interact with the application (e.g., register a new user, add products, place orders).
A big shout out to some of my very favorite people at Coding Temple, without who's ongoing support this project wouldn't be possible:
- Katelyn Mehner
- Dave Kidd
- Daniel Erazo