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.
- Laravel 10
- PHP 8.1
- MySQL 8.0
- Clone the repository:
git clone https://github.com/yrehan32/restaurant-reservation-system.git
cd restaurant-reservation-system
- Install dependencies:
composer install
- 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
- Generate application key:
php artisan key:generate
- Run migrations of the database:
php artisan migrate
- Install Laravel Passport:
php artisan passport:install
- Start the development server:
php artisan serve
Your API is now accessible at http://localhost:8000.
php artisan test