Skip to content

Implemented real-time cart integration using React, FastAPI, and Valkey with Docker Desktop#13

Open
pappusanodiya wants to merge 3 commits into
opensource-for-valkey:mainfrom
pappusanodiya:ps
Open

Implemented real-time cart integration using React, FastAPI, and Valkey with Docker Desktop#13
pappusanodiya wants to merge 3 commits into
opensource-for-valkey:mainfrom
pappusanodiya:ps

Conversation

@pappusanodiya

Copy link
Copy Markdown

Valkey E-Commerce Cart Demo

A real-time E-Commerce cart management system built using React, FastAPI, Valkey, and Docker.

Features

Real-time Add to Cart functionality
FastAPI backend APIs
Valkey in-memory database integration
Dockerized Valkey setup
Dynamic cart operations:

Add items
Update quantity
Remove products
Clear cart
Persistent cart storage using Valkey
Swagger API documentation support

Tech Stack

React JS
FastAPI (Python)
Valkey Database
Docker Desktop
REST APIs
JavaScript

Project Workflow

Frontend (React) → FastAPI Backend → Valkey Database (Docker)

Whenever a user adds a product to the cart, the product details are instantly pushed to the Valkey database through backend APIs.

Run Locally

Start Valkey using Docker

docker start valkey

Start Backend

cd backend
python -m uvicorn main:app --reload --port 8001

Start Frontend

cd frontend
npm install
npm start

API Documentation

Swagger Docs:

http://localhost:8001/docs

Hackathon Goal

To demonstrate ultra-fast real-time cart management using Valkey as a high-performance in-memory database for modern E-Commerce applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant