{"id":19500159,"url":"https://github.com/ajith-11399/hall-booking","last_synced_at":"2026-04-08T22:32:37.629Z","repository":{"id":244115969,"uuid":"812745916","full_name":"Ajith-11399/hall-booking","owner":"Ajith-11399","description":"Task - 26 - NodeJs - Hall Booking CRUD OPS in Express and NodeJs","archived":false,"fork":false,"pushed_at":"2024-06-12T20:03:56.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T21:23:17.716Z","etag":null,"topics":["backend","cors","expressjs","nodejs","nodemon"],"latest_commit_sha":null,"homepage":"https://hall-booking-7bjp.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ajith-11399.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-09T18:59:22.000Z","updated_at":"2024-06-12T20:03:59.000Z","dependencies_parsed_at":"2024-06-13T01:22:24.886Z","dependency_job_id":"3b698263-16ca-4088-8361-235896b2bacb","html_url":"https://github.com/Ajith-11399/hall-booking","commit_stats":null,"previous_names":["ajith-11399/hall-booking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ajith-11399/hall-booking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajith-11399%2Fhall-booking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajith-11399%2Fhall-booking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajith-11399%2Fhall-booking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajith-11399%2Fhall-booking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajith-11399","download_url":"https://codeload.github.com/Ajith-11399/hall-booking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajith-11399%2Fhall-booking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","cors","expressjs","nodejs","nodemon"],"created_at":"2024-11-10T22:07:37.788Z","updated_at":"2026-04-08T22:32:37.615Z","avatar_url":"https://github.com/Ajith-11399.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js CRUD - Operations Task\n\nThis project is a simple Node.js application that provides CRUD operations for managing users and room bookings. It utilizes Express for the server framework.\n\n## Project Description\n\nThis Node.js application provides functionality for creating users, creating rooms, booking rooms, and retrieving data related to users and room bookings. It demonstrates the implementation of CRUD operations in a RESTful API.\n\n## Files Structure\n\n- **userController.js**: Contains the controller functions for handling user and room-related operations.\n- **userRouter.js**: Defines the routes for different CRUD operations.\n- **index.js**: Main entry point of the application.\n- **users.js**: Data file containing initial user and room booking information.\n\n## Tools and Libraries Used\n\n- **Node.js**: JavaScript runtime built on Chrome's V8 JavaScript engine.\n- **Express**: Fast, unopinionated, minimalist web framework for Node.js.\n- **cors**: Middleware for enabling CORS (Cross-Origin Resource Sharing).\n- **body-parser**: Middleware for parsing request bodies.\n\n## Operations\n\n1. **Home**: Displays a welcome message.\n2. **Get All User**: Displays all customers' Data.\n3. **Create A Room**: Create a room.\n4. **Book A Room**: Books a room.\n5. **Get All Booked Rooms**: Retrieves All of the Booked Rooms.\n6. **Get All Booked Customers**: Retrieves All of the customers who booked the Rooms.\n7. **Get Room Booking Count**: Retrieves the rooms booked by each customers.\n\n## Routes\n\n| **Routes**                                                               | **Method** | **Endpoint**   | **Description**                                      |\n| ------------------------------------------------------------------------ | ---------- | -------------- | ---------------------------------------------------- |\n| \u003ca href=\"https://hall-booking-7bjp.onrender.com/\"\u003eHome\u003c/a\u003e               | `GET`      | `/`            | Displays a welcome message.                          |\n| \u003ca href=\"https://hall-booking-7bjp.onrender.com/users\"\u003eCreate\u003c/a\u003e        | `GET`      | `/users`       | Displays all customers' Data.                        |\n| \u003ca href=\"https://hall-booking-7bjp.onrender.com/create-room\"\u003eFiles\u003c/a\u003e   | `POST`     | `/create-room` | Create a room.                                       |\n| \u003ca href=\"https://hall-booking-7bjp.onrender.com/book-room\"\u003eFiles\u003c/a\u003e     | `POST`     | `/book-room`   | Books a room.                                        |\n| \u003ca href=\"https://hall-booking-7bjp.onrender.com//booked\"\u003eFiles\u003c/a\u003e       | `GET`      | `//booked`     | Retrieves All of the Booked Rooms.                   |\n| \u003ca href=\"https://hall-booking-7bjp.onrender.com/customers\"\u003eFiles\u003c/a\u003e     | `GET`      | `/customers`   | Retrieves All of the customers who booked the Rooms. |\n| \u003ca href=\"https://hall-booking-7bjp.onrender.com/booking-count\"\u003eFiles\u003c/a\u003e | `GET`      | `/files`       | Retrieves the rooms booked by each customers.        |\n\n## License\n\n\u003e This repository is owned by\n\u003e \u003ca href=\"https://github.com/Ajith-11399/\"\u003eAJ\u003c/a\u003e\n\n## Backend Source Link\n\n\u003e Nodejs CRUD Operations Task\u003ca href=\"https://hall-booking-7bjp.onrender.com/\"\u003eView Task\u003c/a\u003e\n\n## API DOcumentation - POSTMAN API\n\n\u003e Here is the API documentation of Nodejs CRUD - Operations Task\n\u003e \u003ca href=\"https://documenter.getpostman.com/view/35036950/2sA3XPC2nA\"\u003eView Documentation\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajith-11399%2Fhall-booking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajith-11399%2Fhall-booking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajith-11399%2Fhall-booking/lists"}