Restaurant Reservation System API

Welcome to the Restaurant Reservation System API! This API is designed to handle restaurant reservations, allowing users to book tables either online or offline. Online reservations can be made by customers, while offline bookings are restricted to admin users. The system is built using Laravel 10, PHP 8.1, MySQL database, and utilizes Laravel Passport for authentication.

Getting Started

Prerequisites

  • Laravel 10
  • PHP 8.1
  • MySQL 8.0

Installation

  1. Clone the repository:
git clone https://github.com/yrehan32/restaurant-reservation-system.git

cd restaurant-reservation-system
  1. Install dependencies:
composer install
  1. Create a copy of the .env.example file and rename it to .env and .env.testing. Update the database configuration and other relevant settings:
cp .env.example .env

cp .env.example .env.testing
  1. Generate application key:
php artisan key:generate
  1. Run migrations of the database:
php artisan migrate
  1. Install Laravel Passport:
php artisan passport:install
  1. Start the development server:
php artisan serve

Your API is now accessible at http://localhost:8000.

Testing

php artisan test

Database Mapping

Database Mapping.

API Documentation

Documentation