ahmed-aouinti /
ecommerce-luv2shop-angular-springboot
Experience a seamless online shopping journey with our modern e-commerce platform, built using Angular, Spring Boot, and MySQL as Database.
Loading repository data…
TallesDiniz / repository
A modern e-commerce shopping cart application built with React, TypeScript, and Context API to manage cart state globally across the application.
A modern e-commerce shopping cart application built with React, TypeScript, and Context API to manage cart state globally across the application.
🔗 Live Demo: cart-ecommerce-delta.vercel.app
Cart Ecommerce is a study project focused on practicing React Context API to simulate a real-world shopping cart experience. The app fetches products from a local JSON server, allows users to add and remove items from the cart, and displays the total price in real time.
/product/:id)| Technology | Version | Purpose |
|---|---|---|
| React | ^19.2.4 | UI library |
| TypeScript | ~5.9.3 | Static typing |
| Vite | ^8.0.1 | Build tool & dev server |
| Tailwind CSS | ^4.2.2 | Utility-first styling |
| React Router DOM | ^7.13.2 | Client-side routing |
| Axios | ^1.14.0 | HTTP requests |
| JSON Server | ^1.0.0-beta.15 | Mock REST API |
| React Hot Toast | ^2.6.0 | Toast notifications |
| React Icons | ^5.6.0 | Icon library |
Cart-Ecommerce/
├── public/
├── src/
│ ├── components/ # Reusable components (Header, etc.)
│ ├── context/
│ │ └── CartContext.tsx # Global cart state with Context API
│ ├── pages/
│ │ ├── home/ # Product listing page
│ │ └── product/ # Product detail page by ID
│ ├── services/
│ │ └── api.ts # Axios instance configuration
│ ├── App.tsx # Route definitions
│ └── main.tsx # App entry point
├── db.json # Mock database for JSON Server
├── package.json
├── vite.config.ts
└── tsconfig.json
Make sure you have installed:
git clone https://github.com/TallesDiniz/Cart-Ecommerce.git
cd Cart-Ecommerce
npm install
npx json-server db.json --port 3000
npm run dev
http://localhost:5173
| Command | Description |
|---|---|
npm run dev | Start the development server |
npm run build | Build for production |
npm run preview | Preview the production build |
npm run lint | Run ESLint |
The cart state is managed globally via React's Context API. The CartContext provides the following to all components:
interface CartContextProps {
cart: ProductsProps[]; // Items currently in the cart
addItemCart: (product) => void; // Add a product to the cart
removeItemCart: (id) => void; // Remove a product from the cart
total: string; // Formatted total price (BRL)
}
| Route | Component | Description |
|---|---|---|
/ | Home | Lists all products from the API |
/product/:id | ProductDetail | Shows details of a specific product |
Products are served locally by JSON Server from db.json. The Axios instance in src/services/api.ts points to http://localhost:3000.
{
"products": [
{
"id": 1,
"title": "Product Name",
"description": "Product description",
"price": 99.90,
"cover": "https://image-url.com/image.jpg"
}
]
}
Talles Diniz
This project was developed for learning purposes, focused on practicing React Context API, TypeScript, and component-driven architecture.
Selected from shared topics, language and repository description—not editorial ratings.
ahmed-aouinti /
Experience a seamless online shopping journey with our modern e-commerce platform, built using Angular, Spring Boot, and MySQL as Database.
pjborowiecki /
Quantum Stash is an open-source, modern, full-stack SaaS web application, designed for efficient inventory management. Tailored mainly for e-commerce, it is versatile enough to meet the needs of any business requiring maticulous stock control.
Saif-Mohammed1 /
Open-source modern e-commerce platform built with Next.js 15, TypeScript and GraphQL on PostgreSQL (Knex.js), Apollo Server and Redis. Features secure auth (NextAuth, JWT, 2FA), rate-limiting, admin dashboard, Stripe payments, Cloudinary, and a clean layered architecture with docs to help developers extend and deploy.
Hazrat-Ali9 /
🪣 A dynamic 🧺 and responsive 📒 frontend📙an auction📘 style eCommerce📗platform📔where users 📕 can bid win 🪔 and shop ⚽ products in ⚾ real time Built 🏀 with modern 🥎 web technologies 🏐 to ensure 🎟 smooth 🏆 interaction 🎳 and intuitive 🎮 design 🧸 Secure user 🕌 authentication ✈ and 🚁profile 🚀 management 🚟
HarmanPreet-Singh-XYT /
This is a full stack eCommerce website built using the PERN stack (PostgreSQL, Express, React, Node.js). It features a modern and responsive design, secure payment gateways, dynamic product display algorithms, and comprehensive user functionalities such as wishlist, reviews, order tracking, and more.
FullStack-Flow /
A type-safe, TanStack-powered full-stack e‑commerce starter for modern web shops.