Welcome to Kokan Katta, a web-based restaurant portal that allows customers to explore authentic Kokan cuisine, browse detailed menus, make reservations, and place online orders. The platform also enables restaurants to manage their online presence, including menus, orders, and promotional offers.
- 🌍 Restaurant Search: Easily find Kokan restaurants based on location, cuisine, or reviews.
- 📜 Menu Browsing: View detailed restaurant menus with real-time updates.
- 🛒 Online Ordering: Add items to the cart and place food orders for delivery or pickup.
- 📅 Table Reservations: Reserve a table at any of the partner restaurants.
- 🎉 Offers & Discounts: Access exclusive offers and promotions.
- 📱 Restaurant Management Dashboard: For owners to manage menus, reservations, and orders.
- ☁️ Cloud Hosting: Ensures scalability, security, and worldwide access.
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL (or any other SQL database)
- Server: Apache (or any web server supporting PHP)
- Cloud Hosting: AWS, Azure, or any hosting provider that supports PHP
Make sure you have the following installed:
- XAMPP or WAMP (for local development)
- PHP 7.4+
- MySQL
-
Clone the repository:
git clone https://github.com/your-username/kokan-katta-restaurant.git
-
Move the project folder to your web server's root directory (for XAMPP, it's
htdocs
):mv kokan-katta-restaurant /path-to-xampp/htdocs/
-
Start your web server (XAMPP/WAMP) and open PHPMyAdmin to create a new database:
- Name the database:
kokan_katta
- Name the database:
-
Import the SQL file into your database:
- Navigate to
phpmyadmin
, select the database, and use the Import feature to upload thekokan_katta.sql
file provided in the/database
folder of the project.
- Navigate to
-
Configure environment variables:
- Open the
config.php
file located in theincludes
directory and set the database credentials:
<?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_NAME', 'kokan_katta'); ?>
- Open the
-
Open your browser and visit:
http://localhost/kokan-katta-restaurant
index.php
: Entry point of the application.assets/
: Contains CSS, JavaScript, images, and other assets.includes/
: Contains PHP files for database connection and backend logic.templates/
: Contains the reusable HTML templates for header, footer, and other components.database/
: Contains the SQL file for setting up the database.
- Start your local web server (XAMPP/WAMP).
- Ensure MySQL is running.
- Access the website at
http://localhost/kokan-katta-restaurant
.
You can manually test the functionality of the site (e.g., placing orders, making reservations). Automated tests can be added later using PHP testing frameworks like PHPUnit.
To deploy the project on a live server:
- Upload the project files to your web server using FTP (e.g., FileZilla) or deploy using cloud platforms (AWS, DigitalOcean).
- Import the database to your live MySQL server.
- Update
config.php
with the live database credentials. - Ensure file permissions are properly set on the server for PHP and MySQL to function correctly.
Contributions are welcome! Here's how you can help:
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature name"
- Push to your forked repository:
git push origin feature-name
- Submit a pull request, referencing any open issues.
If you encounter any problems, feel free to check or raise issues here.
This project is licensed under the MIT License. See the LICENSE file for more details.
For inquiries or support, contact:
- Sahil: [email protected]
- GitHub: your-username