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
- Host: GitHub
- URL: https://github.com/guptag0808/book-slot
- Owner: guptag0808
- Created: 2023-07-12T05:41:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T15:09:57.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T19:33:36.409Z (4 months ago)
- Language: JavaScript
- Homepage: https://roaring-crostata-727cf9.netlify.app/
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```markdown
# Slot Booking SystemThis 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).