A modern full-stack food ordering platform developed using React, Django, SQLite, and Google Authentication. The project combines an animated and responsive frontend with a structured backend system for user authentication, order management, analytics tracking, and REST API communication.
The Burger & Cake Website is designed to simulate a modern food ordering application with a visually engaging user interface and a scalable backend architecture. The application allows users to browse products, authenticate using Google Sign-In, place orders, and view purchase history and analytics.
- Modern animated landing page
- Background video hero section
- Responsive navigation bar
- Interactive product cards
- Smooth Framer Motion animations
- Mobile responsive layout
- Google OAuth Sign-In
- Persistent login using localStorage
- User-based dashboard access
- Dynamic profile avatar generation
- Add to Cart functionality
- Buy Now functionality
- Product listing interface
- Product image support
- Food category presentation
- User order history tracking
- Item-wise purchase tracking
- Monthly and yearly analytics
- Purchase count statistics
- Time-based order tracking
- Repeat item analytics
- Django REST API integration
- SQLite database storage
- API-based frontend communication
- CORS support for frontend/backend interaction
- React.js
- Framer Motion
- React Router DOM
- Google OAuth
- JavaScript
- Django
- Django REST Framework
- SQLite
- django-cors-headers
- Netlify (Frontend)
- Render (Backend)
burger_and_cake/
│
├── frontend/
│ ├── public/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── App.js
│ │ └── index.js
│ └── package.json
│
├── backend/
│ ├── config/
│ ├── orders/
│ ├── manage.py
│ ├── db.sqlite3
│ └── requirements.txt
│
└── README.mdcd frontendnpm installnpm startFrontend runs on:
http://localhost:3000cd backendpython -m venv venvvenv\Scripts\activatepip install django djangorestframework django-cors-headers gunicorn whitenoisepython manage.py makemigrations
python manage.py migratepython manage.py runserverBackend runs on:
http://127.0.0.1:8000https://console.cloud.google.com/
Create a new Google Cloud project from the dashboard.
Navigate to:
APIs & Services → Credentials
Create:
OAuth Client ID
Select:
Web Application
http://localhost:3000
https://your-netlify-site.netlify.app
Example:
123456789-example.apps.googleusercontent.com
Inside:
frontend/src/index.jsAdd:
<GoogleOAuthProvider clientId="YOUR_CLIENT_ID">Replace localhost backend URLs with deployed backend URLs during production deployment.
Example:
const API_URL = "https://your-render-backend.onrender.com";Example API Call:
fetch(`${API_URL}/api/buy/`)The project currently uses SQLite as the database.
Database file:
backend/db.sqlite3Stored Information:
- User order history
- Purchase timestamps
- Item purchase frequency
- Monthly analytics
- Repeat purchase data
- User email tracking
Place video files inside:
frontend/public/Example:
frontend/public/burger.mp4Usage:
<source src="/burger.mp4" type="video/mp4" />Place product images inside:
frontend/public/images/Example:
frontend/public/images/cake1.jpgUsage:
<img src="/images/cake1.jpg" alt="Cake" />frontend
npm run buildbuild
gunicorn config.wsgiThe backend analytics system stores:
- Total orders
- Product purchase count
- Monthly order statistics
- Daily purchase tracking
- User purchase history
- Repeat purchase information
This data can be used for:
- Sales analysis
- Customer behavior analysis
- Popular item identification
- Monthly performance tracking
- User opens the website
- User signs in using Google Authentication
- User browses products
- User adds products to cart
- User purchases products
- Backend stores order information in SQLite
- Dashboard and History pages display analytics and purchase history
- PostgreSQL integration
- JWT Authentication
- Payment gateway integration
- Admin analytics dashboard
- Real-time order tracking
- AI-based recommendation system
- Wishlist functionality
- Cart persistence
react, django, sqlite, google-auth, food-ordering, framer-motion, rest-api, full-stack, analytics
Developed as a full-stack web application project for educational, portfolio, and learning purposes.
This project is intended for educational and non-commercial use.