Hosted on Heroku at https://gadgehaven.herokuapp.com/
Gadgehaven is an eCommerce web application for gadgets like Laptops and Phones. This project was inspired by a project on my python hero to mastery course by Angela Yu. The project was supposed to be a simple online store with a payment system. I intended to go simple, but I decided to challenge myself and implement a fairly complicated eCommerce API. I am happy I made this decision because I was able to learn a lot in the process.
Flask(Python), Postgresql, Stripe API for payments
These are the features of the application:
- Returns the products by the two categories: Phones and Laptops
- Returns the products based on the average rating in descending order
- Returns the products based on the number of purchases in descending order
- The search feature returns the closest results to the name of the product, the specs of the product and the category
- Filter based on Price range and category
- Add products to cart
- Remove products from cart
- sign up with email address address and other user details
- Login with email and Password
- Sends an email to the user with a link to reset their password
- Change Password
- Edit Profile
- View previous purchases
- View user profile
- User must be logged in to be able to purchase product
- Use stripe payment platform to pay for goods
- Send a receipt to user's email
- Add new product
- Restock Product
- delete product
- edit product details
- View inventory - Sorted by remaining products in descending order
- Generate inventory report - Generates a csv file of all the products
- View Sales report
- Generate sales report - Generates a csv file of all sales made
- View reviews
- Delete reviews
+---online_store
| +---templates
| | +---index.html
| +---_init_.py
| +---admin_views.py
| +---cart.py
| +---errorhandlers.py
| +---forms.py
| +---models.py
| +---payments.py
| +---queries.py
| +---users.py
+---MANIFEST.in
+---Procfile
+---README.md
+---config.py
+---data.py
+---requirements.txt
+---run.py
+---setup.py
- Fork the project repository and clone your forked repository to your machine.
- Set up development environment
- Run
pip install -r requirements.txt - Edit config file and comment out 'SERVER_NAME'
- set up database
- Run
$export FLASK_APP=run.py - Run
$export FLASK_ENV=development - Run
flask run
Access the API documentation here.