Inspiration

To build an effective e-commerce application using Flask

What it does

The project is a Flask app created to serve as an e-commerce Grocery store. The website has one admin who can create, edit, and delete categories and products. Categories are assigned to products during the creation of the product itself. Users can log in and purchase the products. They can search for products or categories, they can view and edit the cart. All the CRUD operations are handled using REST APIs created using flask_restful. SQLite3 is used for database and flask_sqlalchemy is used to interact with database. The code handles all errors that can occur through user inputs and returns necessary error messages. Bootstrap and CSS are used to style webpages. A shell script is used to install requirements. The routes are specific for the user and admin. All the purchases are saved for financial analysis and a summary is provided to the admin. On adding a product to a cart all other carts are also checked to avoid resource Race conditions. The Flask app serves as a good backend to run the application while maintaining the integrity of the database.

How we built it

Build on Flask

Challenges I ran into

I faced challenge to track all the routes which I started to order by giving appropriate names and noting the order.

Accomplishments that I am proud of

Implementation of REST API using flask-restful

What I learned

How to build REST APIs in Flask and database communication via ORM using SQLAlchemy

What's next for Grocery Store

Integration of frontend using VueJS and caching.

Built With

Share this project:

Updates