Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/10kartik/turf-reservation-web

This repository contains the frontend code for a turf reservation system built with React, CSS, Bootstrap, and Axios. It allows users to view available slots, book a slot, and admins to manage bookings.
https://github.com/10kartik/turf-reservation-web

axios bootstrap css reactjs vercel

Last synced: about 1 month ago
JSON representation

This repository contains the frontend code for a turf reservation system built with React, CSS, Bootstrap, and Axios. It allows users to view available slots, book a slot, and admins to manage bookings.

Awesome Lists containing this project

README

        

# Turf Reservation System

This project is a turf reservation system. The web frontend uses tech tools like React, CSS, Bootstrap, and Axios.

Make sure to checkout [backend repository](https://github.com/10kartik/turf-reservation-api).

## User Stories

### As a Guest User

#### View Available Slots
Visitors can access the website to view the available time slots for booking. The system displays a list of available slots.

#### Book a Slot
Users can select their desired time slot for booking and proceed to the booking form.

#### Provide Booking Information
Guests need to enter basic information (name, phone, email) to confirm the booking.

![Available and Book Slots](./public/check_and_book.png)

#### Confirm Booking
Users have the ability to review the booking details and confirm the booking.

![Reservation request confirmed](./public/booking_request_confirmed.png)
![Check Reservation Status](./public/status_pending.png)

### As an Admin User

#### View Bookings
Admins can log in to the admin panel and view the list of pending bookings.

![Admin login panel](./public/admin_login.png)

#### Confirm Reservation as Booked
After confirming payment, admins can mark the booking as booked.

![Admin login panel](./public/confirm_pending_bookings.png)

#### Check booking status
Guest or Admin can check and verify booking status.

![Booking confirmed](./public/booking_confirmed.png)

## Getting Started

Before you begin, ensure that you have forked and set up the backend repository, which is running successfully. You can find the backend repository at the following link: [Turf Reservation API](https://github.com/10kartik/turf-reservation-api).

Follow these steps to set up this repository:

1. **Fork the Repository:** Start by forking this repository to your own GitHub account.

2. **Clone the Repository:** After forking, clone the repository to your local machine by using the `git clone` command.

3. **Install Dependencies:** Navigate to the cloned repository's directory and run `npm install` to install all the necessary dependencies.

4. **Set Environment Variables:** Create a `.env` file in the root directory of the project and set all the required environment variables.

5. **Start the Server:** Run `npm start` to start the server. The application should now be running at `localhost:3000`.

6. **Make Changes:** After you've made your changes, commit and push them to your forked repository.

7. **Deploy the Application:** To deploy the application, type `vercel` in your terminal to create a preview deployment. Once you're ready to push your changes live, use `vercel --prod` to create a production deployment.

That's it! You've now successfully set up and deployed the application.