Skip to content

Deep-005/Restaurant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍽️ Restaurant Website

A sophisticated, interactive restaurant website built with Django, HTML, CSS, and JavaScript. Featuring an elegant, modern UI with seamless user experience for browsing menus, making reservations, and exploring culinary offerings.

Watch live at:

https://restaurant-rt5b.onrender.com

✨ Features

🎨 Modern & Elegant Design Responsive Layout - Perfectly adapts to all screen sizes (desktop, tablet, mobile)

Interactive UI Elements - Smooth animations, hover effects, and transitions

Visual Menu Display - High-quality food images with detailed descriptions

Dark/Light Mode - Toggle between themes for comfortable viewing

πŸ”§ Core Functionality Online Reservation System - Easy table booking with date/time selection

Menu Management - Categorized food items with filtering options

Admin Dashboard - Full CRUD operations for menu items, reservations, and orders

User Authentication - Secure login/registration system

Order Management - Track order status and history

🌟 Interactive Elements

Real-time Form Validation - Instant feedback on user inputs

Image Galleries - Food and restaurant ambiance showcases

Dynamic Content Loading - Smooth AJAX-based updates

Interactive Navigation - Smooth scrolling and page transitions

πŸ› οΈ Technology Stack

Backend Django 5.2.3 - High-level Python web framework

PostgreSQL - Production-ready database

Django REST Framework - API development

Gunicorn - WSGI HTTP Server for production

Frontend HTML5 - Semantic markup structure

CSS3 - Modern styling with Flexbox/Grid

JavaScript ES6+ - Interactive functionality

πŸš€ Installation & Setup

Prerequisites Python 3.9+

PostgreSQL (or SQLite for development)

pip package manager

Step-by-Step Installation Clone the repository

bash git clone https://github.com/yourusername/restaurant-website.git cd restaurant-website Create virtual environment

bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate Install dependencies

bash pip install -r requirements.txt Configure environment variables Create a .env file in the root directory:

env SECRET_KEY=your-secret-key-here DEBUG=True DATABASE_URL=postgresql://user:password@localhost/restaurant_db Apply migrations

bash python manage.py makemigrations python manage.py migrate Create superuser

bash python manage.py createsuperuser Run development server

bash python manage.py runserver Visit http://127.0.0.1:8000 in your browser.

πŸ“± Pages & Features

🏠 Home Page Hero section with call-to-action

Featured menu items showcase

About restaurant section

Customer testimonials

πŸ“‹ Menu Page Categorized food items (Starters, Mains, Desserts, Drinks)

Search and filter functionality

Detailed item descriptions with pricing

🎯 Reservation System Online table booking

Date and time selection

Party size configuration

Reservation confirmation email

🎨 Design Highlights

Color Palette css --primary-color: #c9a96e; /* Gold accent */ --secondary-color: #1a1a1a; /* Dark background */ --accent-color: #d4af37; /* Light gold */ --text-color: #333333; /* Main text */ --light-bg: #f8f9fa; /* Light background */ Typography Primary Font: 'Playfair Display' (Elegant serif for headings)

Secondary Font: 'Open Sans' (Clean sans-serif for body text)

Animations Fade-in transitions on scroll

Hover effects on interactive elements

Smooth page transitions

Loading animations

πŸ”’ Security Features

CSRF protection

XSS prevention

SQL injection protection

Secure password hashing

HTTPS enforcement in production

Session security

🚒 Deployment

Render.com Deployment Steps Push code to GitHub repository

Create new Web Service on Render

Connect your GitHub repository

Set environment: Python 3

Build Command: pip install -r requirements.txt

Start Command: gunicorn restaurant.wsgi:application

Configure Environment Variables on Render

text SECRET_KEY = your-generated-secret-key DEBUG = False DATABASE_URL = render-provided-postgres-url ALLOWED_HOSTS = your-app.onrender.com Deploy and monitor logs

Alternative: Traditional Hosting bash

Collect static files

python manage.py collectstatic

Configure production settings

python manage.py check --deploy

πŸ“ˆ Performance Optimizations

Caching - Database query and template caching

Image Optimization - Compressed and responsive images

Lazy Loading - Images load as user scrolls

Minified Assets - Compressed CSS and JavaScript

CDN Integration - For static assets in production

πŸ‘₯ Acknowledgments

Icons from Font Awesome

Images from Unsplash

Fonts from Google Fonts

Django Documentation Team

πŸ“Έ Screenshots

restuarant Screenshot (87) Screenshot (86) Screenshot (84) Screenshot (83) Screenshot (82) Screenshot (90) Screenshot (89) Screenshot (88) Screenshot (92) Screenshot (91)

About

An elegant and interactive website for restuarant using HTML, CSS, JS and Django.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published