A web-based application that allows administrators to manage different types of bookings (e.g. tennis courts, snooker tables) and clients to book these items.
- Add new booking types (e.g. tennis court, snooker table)
- Manage existing booking types (edit, delete)
- View booking type details (price, etc.)
- Browse available booking types
- Book a specific booking type for a chosen time slot
- View client's upcoming bookings and past bookings
To get started with the project, follow these steps:
- Clone the repository using
git clone https://github.com/shutodown57/booking.git
- Install dependencies by running
npm install
- Create a database schema for the application (see
config/database.js
) - Run migrations to set up the database tables (
php artisan migrate
)
- Start the development back-end server by running
php artisan serve
- Start the development front-end server by running
npm run dev
- Access the application at
http://localhost:8000
- Running tests by
php artisan test
orphp artisan test -p
for parallel. - Running tests coverage by
php artisan test --coverage
. - Running tests profile by
php artisan test --profile
.
-
GET|HEAD
/
: Retrieve index page. -
GET|HEAD
/bookable
: Retrieve index bookable page. -
POST
/bookable
: Create new bookable. -
GET|HEAD
/bookable/create
: Retrieve create bookable page. -
GET|HEAD
/bookable/{bookable}
: Retrieve show bookable page. -
PUT
/bookable/{bookable}
: Update an existing bookable. -
DELETE
/bookable/{bookable}
: Delete a bookable. -
GET|HEAD
/bookable/{bookable}/edit
: Retrieve edit bookable page. -
GET|HEAD
/bookable-type
: Retrieve index bookable type page. -
POST
/bookable-type
: Create new bookable type. -
GET|HEAD
/bookable-type/create
: Retrieve create bookable type page. -
PUT
/bookable-type/{bookableType}
: Update an existing bookable type. -
DELETE
/bookable-type/{bookableType}
: Delete a bookable type. -
GET|HEAD
/bookable-type/{bookableType}/edit
: Retrieve edit bookable type page. -
GET|HEAD
/booking
: Retrieve index booking page. -
POST
/booking
: Create new booking. -
GET|HEAD
/booking/create
: Retrieve create booking page. -
PUT
/booking/{id}
: Update an existing booking. -
DELETE
/booking/{id}
: Delete a booking. -
GET|HEAD
/booking/{id}/edit
: Retrieve edit booking page.
Laravel, Inertia/Vue3, TailwindCSS, SQLite3