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

https://github.com/guptag0808/book-slot

Booking Slot-App
https://github.com/guptag0808/book-slot

Last synced: 3 months ago
JSON representation

Booking Slot-App

Awesome Lists containing this project

README

        

```markdown
# Slot Booking System

This is a slot booking system built with Node.js and MySQL. The system allows users to book slots for specific dates and time ranges.

## Frontend Link
roaring-crostata-727cf9.netlify.app/

## Installation

1. Clone the repository:

```
git clone https://github.com/guptag0808/Book-Slot.git
```

2. Install the dependencies:

```
cd Book-Slot
npm install
```

3. Set up the database:

- Create a MySQL database.
- Update the MySQL connection details in the `config/config.js` file.

4. Run the application:

```
npm start
```

The application should now be running on `http://localhost:8080`.
start the server with :-npm run server

## Usage

- Use a REST client or tools like Postman to interact with the API.
- The following endpoints are available:

- `POST /slots`: Create a new slot. Requires the following parameters:
- `date`: The date of the slot (in YYYY-MM-DD format).
- `startSlot`: The start time of the slot (in HH:MM format).
- `endSlot`: The end time of the slot (in HH:MM format).