Welcome to the Restaurant Website project! This repository contains the source code for a full-featured restaurant website built using Django. The website allows users to browse the menu, make reservations, read reviews, and contact the restaurant.
- Browse menu items with detailed descriptions and prices
- Order desired menu items and pay using multiple payment methods
- Make online reservations for Tables
- Read and submit reviews and testimonials
- Write and Read Blogs
- Easy to Use Search Bar for menu items
- Admin interface for managing menu items, reservations, reviews, staff and orders
- Backend: Django
- Frontend: HTML, CSS, JavaScript, Bootstrap5, TailwindCSS
- Database: MySQL (default, can be configured to use PostgreSQL, MySQL, etc.)
-
Clone the repository:
git clone https://github.com/UzitheI/ResCaf.git cd mysite
-
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows use `env\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
The website will be available at
http://127.0.0.1:8000/
.
- Admin Panel: Access the admin panel at
http://127.0.0.1:8000/admin/dashboard
to manage menu items, reservations, and reviews. -Note: The dashboard only opens if the user is a superuser. - Homepage: Visit
http://127.0.0.1:8000/
to view the homepage.
mysite/
├── customadmin/ # Dashboard and authentication
├── home/ # Table booking, chef details, blog details, review
├── menu/ # Dish, cart
├── mysite/ # Project settings and configurations
├── static/
│ ├── assets/ # Contains dependencies for index and base
│ ├── assets2/ # Contains dependencies for admin dashboard
├── templates/
│ └── home_folder/
├── theme/ # Contains files for TailwindCSS
└── manage.py
Contributions are welcome! Please open an issue or submit a pull request for any changes.
- Fork the repository
- Create your feature branch (
git checkout -b feature/
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a pull request