The Sweet Shop Management System is a full-stack web application designed to manage sweets inventory, user authentication, and purchases.
This project demonstrates skills in API development, database management, frontend implementation, testing, and modern development workflows, including responsible AI usage.
Users can:
- Register and log in.
- View available sweets.
- Search and filter sweets.
- Purchase sweets (quantity decreases automatically).
Admins can additionally:
- Add new sweets.
- Update sweet details.
- Delete sweets.
- Restock inventory.
Backend:
- Python 3.13
- Django 5.1
- Django REST Framework
- SQLite (database)
- JWT Authentication (via
djangorestframework-simplejwt) - CORS handling (
django-cors-headers)
Frontend:
- React (Vite)
- TailwindCSS
- Axios for API requests
- React Router for SPA navigation
- Registration & login
- View list of sweets
- Search by name or category
- Purchase sweets
- All user features
- Add new sweets
- Update existing sweets
- Delete sweets
- Restock sweets
git clone https://github.com/Yashwant176/sweetshop.git
cd sweetshopcd sweetshop_backend
virtualenv venv
venv/Scripts/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runservercd sweetshop_frontend
npm install
npm run devFrontend will run at http://localhost:5173/
Login page redirects to Dashboard
Admin users will see extra controls for add, restock, and delete
I used AI tools to assist in development while following the project guidelines responsibly.
ChatGPT: Assisted with generating boilerplate code for Django views, React components, and API integration.
Generated initial structure for Django API views (CRUD and authentication endpoints)
Assisted with React component creation (Dashboard, Login, Admin actions)
Provided suggestions for TailwindCSS layout and form styling
Debugged errors and suggested solutions
AI accelerated development by providing structured code and suggestions, but all logic, modifications, and integrations were verified and manually coded. AI was used as an augmentation tool, not a replacement for my own work.
Backend tests implemented using Django’s built-in TestCase and DRF API testing utilities.
TDD approach followed: wrote tests first, then implemented the feature, and refactored.
python manage.py testDeployed on Render : https://sweetshop-frontend-9g5r.onrender.com
https://github.com/Yashwant176/sweetshop
GitHub: https://github.com/Yashwant176
LinkedIn: https://www.linkedin.com/in/kyashwantkumar
Portfolio: https://yashwant.is-a.dev


