Skip to content

Vishaldave45/Sweet-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

35 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

sweetshop-kata (React + TDD)

A simple sweet shop management system for a sweet shop built with React, JavaScript, and tested using Jest following Test-Driven Development (TDD) principles.


🎯 Features

  • View sweets from inventory
  • Sweet logic handled by a separate SweetShopService class
  • Fully tested with Jest
  • Modular React components
  • Clean Git commit history with TDD-style commits

πŸ“ Project Structure

sweet-shop-react/ β”œβ”€β”€ public/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ App.jsx β”‚ β”œβ”€β”€ SweetShopService.js β”‚ β”œβ”€β”€ components/ β”‚ β”‚ └── SweetList.jsx β”‚ └── index.js β”œβ”€β”€ tests/ β”‚ └── SweetShopService.test.js β”œβ”€β”€ jest.config.js └── README.md


πŸš€ Getting Started

1. Clone the Repository

git clone https://github.com/YOUR_USERNAME/sweet-shop-react.git
cd sweet-shop-kata

npm install

▢️ Running the Application

npm start

 This starts the app at http://localhost:3000.
 Click the "View All Sweets" button to display the sweets in stock.

 Running Tests
 npm test

Sample Sweet Data

| ID | Name        | Category   | Price | Quantity |
| -- | ----------- | ---------- | ----- | -------- |
| 1  | Kaju Katli  | Nut-Based  | 50    | 20       |
| 2  | Gulab Jamun | Milk-Based | 10    | 15       |


πŸ“œ License
This project is open source and available under the MIT License.



πŸ‘€ Author
 Vishal Dave
M.E. – Information Technology, LD College of Engineeringο»Ώ

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published