A simple full-stack Tea Shop web application built using React, Django REST Framework, and PostgreSQL.
Tea Palace allows users to browse tea and snack items, register/login using JWT authentication, add products to a shopping cart, and place orders.
| Home | Products |
|---|---|
![]() |
![]() |
| Cart | Orders |
|---|---|
![]() |
![]() |
| Login | Register |
|---|---|
![]() |
![]() |
- User Registration
- User Login (JWT Authentication)
- Browse Tea & Snacks
- Product Categories
- Add Products to Cart
- Update Cart Quantity
- Remove Products from Cart
- Place Orders
- View Order History
- Responsive Bootstrap UI
- React
- React Router
- Axios
- Bootstrap 5
- Django
- Django REST Framework
- Simple JWT
- PostgreSQL
Tea-Palace
│
├── backend
│ ├── accounts
│ ├── products
│ ├── cart
│ ├── orders
│ └── config
│
├── frontend
│ ├── src
│ ├── public
│ └── package.json
│
├── screenshots
│
└── README.md
git clone https://github.com/YOUR_USERNAME/tea-palace.git
cd tea-palaceCreate Virtual Environment
python -m venv venvActivate
Windows
venv\Scripts\activateInstall Dependencies
pip install -r requirements.txtCreate .env
SECRET_KEY=your-secret-key
DEBUG=True
DB_NAME=tea-palace
DB_USER=postgres
DB_PASSWORD=your-password
DB_HOST=localhost
DB_PORT=5432Run Migrations
python manage.py migrateCreate Superuser
python manage.py createsuperuserRun Server
python manage.py runserverMove to frontend
cd frontendInstall Packages
npm installStart React
npm run dev| Method | Endpoint |
|---|---|
| POST | /api/auth/register/ |
| POST | /api/auth/login/ |
| GET | /api/auth/profile/ |
| Method | Endpoint |
|---|---|
| GET | /api/products/ |
| POST | /api/products/ |
| PUT | /api/products/{id}/ |
| DELETE | /api/products/{id}/ |
| Method | Endpoint |
|---|---|
| GET | /api/cart/ |
| POST | /api/cart/add/ |
| PATCH | /api/cart/items/{id}/ |
| DELETE | /api/cart/items/{id}/delete/ |
| Method | Endpoint |
|---|---|
| POST | /api/orders/place/ |
| GET | /api/orders/ |
- Product Search
- Product Filtering
- User Profile
- Order Status Tracking
- Payment Integration
- Product Reviews
While building this project I practiced:
- Django REST Framework
- JWT Authentication
- React Routing
- REST API Integration
- Axios
- PostgreSQL
- CRUD Operations
- Bootstrap UI Development
- Frontend & Backend Integration
Mohamed Azarudeen S
GitHub: https://github.com/Azar-02





