Coder Social home page Coder Social logo

shopping-cart-nextjs-flask's Introduction

Online Shopping Site

This project is a simple online shopping site similar to Amazon, allowing users to view products, add them to a cart, and purchase items. It fulfills the given requirements and includes some bonus features such as storing products in Firebase and having a clean UI.

Features

  • Product Grid: Display all available products on a single page with key details such as image, name, and price.
  • Product Detail Pages: Clicking on a product card opens an individual page displaying detailed information about the product including image, name, price, and description.
  • Add to Cart Functionality: Users can add products to their cart by clicking the "Add to Cart" button on the product detail page.
  • Cart System: A simple cart system keeps track of the items added by the user. The number of items in the cart is displayed in the site header. Clicking on the cart icon opens a popup displaying the products in the cart and the total price.
  • Checkout: Users can purchase items by clicking the "Checkout" button in the cart popup. This clears the cart and displays an alert confirming the order. Additionally, it makes a request to the backend to reduce the available quantity of each purchased product.

Technologies Used

  • Frontend: HTML, CSS, JavaScript (NextJS)
  • Backend: Python (Flask)
  • Database: Firebase

Getting Started

  1. Clone the repository: git clone https://github.com/sanketwadekar/shopping-cart-nextjs-flask.git
  2. Install frontend dependencies: cd shopping-cart-frontend && npm install
  3. Start the frontend: npm run dev
  4. Install Python dependencies: pip install -r requirements.txt
  5. Start the backend (if applicable): cd shopping-cart-backend && python app.py
  6. Open your browser and navigate to http://localhost:3000

Screenshots

Product Grid Product Grid displaying available products.

Product Detail Page Product Detail Page showing detailed information about a product.

Cart Popup Cart Popup displaying the items added to the cart and the total price.

Demo

A demo of the project can be found here.

License

This project is licensed under the MIT License - see the LICENSE file for details.

shopping-cart-nextjs-flask's People

Contributors

sanketwadekar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.