{"id":19961895,"url":"https://github.com/chuksjoshuaa/hotel-projects","last_synced_at":"2026-04-10T00:04:36.621Z","repository":{"id":64553556,"uuid":"575402672","full_name":"ChuksJoshuaa/Hotel-Projects","owner":"ChuksJoshuaa","description":"Full stack hotel web application. Get all lists of hotels and their various hotel brand. Users can post, update and delete the various hotels created. Project was built with Bootstrap, GraphQL,  React.js, Node.js, Typescript, Typeorm, PostgreSQL, Redis and so much more","archived":false,"fork":false,"pushed_at":"2023-02-09T15:05:58.000Z","size":727,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T07:46:36.873Z","etag":null,"topics":["apollo-client","bootstrap5","css3","graphql","html5","nodejs","postgresql","railway","reactjs","redis","typeorm","typescript","urql","vercel"],"latest_commit_sha":null,"homepage":"https://hotel-projects.vercel.app","language":"TypeScript","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/ChuksJoshuaa.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":"2022-12-07T12:40:38.000Z","updated_at":"2023-05-06T14:42:07.000Z","dependencies_parsed_at":"2025-01-12T07:45:39.571Z","dependency_job_id":"4f26fe3b-0e3c-4893-a3d8-4d00ffac82a3","html_url":"https://github.com/ChuksJoshuaa/Hotel-Projects","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuksJoshuaa%2FHotel-Projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuksJoshuaa%2FHotel-Projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuksJoshuaa%2FHotel-Projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuksJoshuaa%2FHotel-Projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChuksJoshuaa","download_url":"https://codeload.github.com/ChuksJoshuaa/Hotel-Projects/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241396743,"owners_count":19956404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["apollo-client","bootstrap5","css3","graphql","html5","nodejs","postgresql","railway","reactjs","redis","typeorm","typescript","urql","vercel"],"created_at":"2024-11-13T02:08:52.497Z","updated_at":"2025-12-30T19:36:01.260Z","avatar_url":"https://github.com/ChuksJoshuaa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Full Stack Web Application.\n\n\u003cimg src=\"https://res.cloudinary.com/chuksmbanaso/image/upload/v1670736915/media/User/images/Screenshot_295_jy160t.png\" title=\"icon\" alt=\"icon\"\u003e\n## GraphQL Queries \u0026 Mutations\n\n## Queries\n\n### Get names of all brands\n\n```\nquery Brands {\n    brands {\n      id\n      name\n      createdAt\n      updatedAt\n    }\n  }\n```\n\n### Get a single brand\n\n```\nquery Brand($id: Int!) {\n    brand(id: $id) {\n      id\n      name\n      createdAt\n      updatedAt\n    }\n}\n```\n\n### Get names of all hotels\n\n```\nquery Hotels {\n    hotels {\n      id\n      name\n      description\n      image\n      price\n      city\n      address\n      country\n      brandId\n      authorId\n      createdAt\n      updatedAt\n    }\n  }\n\n```\n\n### Get a single hotel\n\n```\nquery Hotel($id: Int!) {\n    hotel(id: $id) {\n      id\n      name\n      description\n      image\n      price\n      city\n      address\n      country\n      authorId\n      createdAt\n      updatedAt\n      brandId\n    }\n  }\n\n```\n\n### Get filtered hotels by brand\n\n```\nquery FilterHotels($brandId: Int!) {\n    filterHotels(brandId: $brandId) {\n      id\n      name\n      description\n      image\n      price\n      city\n      address\n      country\n      authorId\n      createdAt\n      updatedAt\n      brandId\n    }\n  }\n\n```\n\n##Mutations\n\n### Create a new brand\n\n```\n mutation CreateBrand($input: BrandInput!) {\n    createBrand(input: $input) {\n      id\n      name\n      authorId\n      createdAt\n      updatedAt\n    }\n  }\n\n```\n\n### Create a new hotel\n\n```\nmutation CreateHotel($input: HotelInput!) {\n    createHotel(input: $input) {\n      id\n      name\n      description\n      image\n      price\n      city\n      address\n      country\n      brandId\n      authorId\n      createdAt\n      updatedAt\n      brandId\n    }\n  }\n\n```\n\n### Delete a brand and return a boolean\n\n```\nmutation DeleteBrand($id: Int!) {\n    deleteBrand(id: $id)\n}\n\n```\n\n### Delete an hotel and return a boolean\n\n```\nmutation DeleteHotel($id: Int!) {\n   deleteHotel(id: $id)\n}\n\n```\n\n### update an hotel brand\n\n```\nmutation UpdateBrand($id: Int!, $name: String!) {\n    updateBrand(id: $id, name: $name) {\n      id\n      name\n      createdAt\n      updatedAt\n    }\n  }\n\n```\n\n### update an hotel\n\n```\n mutation UpdateHotel(\n    $id: Int!\n    $name: String!\n    $description: String!\n    $brandName: String!\n    $address: String!\n    $city: String!\n    $image: String!\n    $country: String!\n    $price: Int!\n  ) {\n    updateHotel(\n      id: $id\n      name: $name\n      description: $description\n      brandName: $brandName\n      address: $address\n      city: $city\n      image: $image\n      country: $country\n      price: $price\n    ) {\n      id\n      name\n      description\n      image\n      price\n      city\n      address\n      country\n      brandId\n      authorId\n      createdAt\n      updatedAt\n    }\n```\n\n### Login\n\n```\nmutation Login($email: String!, $password: String!) {\n    login(email: $email, password: $password) {\n      errors {\n        field\n        message\n      }\n      user {\n        id\n        email\n        username\n        createdAt\n        updatedAt\n      }\n    }\n  }\n\n```\n\n### Register\n\n```\nmutation Register($options: UserPasswordInput!) {\n    register(options: $options) {\n      errors {\n        field\n        message\n      }\n      user {\n        id\n        username\n        email\n        createdAt\n        updatedAt\n      }\n    }\n  }\n\n```\n\n### Logout\n\n```\nmutation Logout {\n    logout\n  }\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuksjoshuaa%2Fhotel-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchuksjoshuaa%2Fhotel-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuksjoshuaa%2Fhotel-projects/lists"}