{"id":22835311,"url":"https://github.com/publishername/hotelbooking_api","last_synced_at":"2025-03-31T02:44:20.430Z","repository":{"id":218415491,"uuid":"746328611","full_name":"PublisherName/HotelBooking_API","owner":"PublisherName","description":"Hotel Room Booking Backend in C# .NET: Simplifying room reservations with a powerful and easy-to-use backend.","archived":false,"fork":false,"pushed_at":"2024-02-08T09:59:25.000Z","size":49,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-06T07:46:23.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/PublisherName.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-01-21T18:31:20.000Z","updated_at":"2024-01-22T11:28:06.000Z","dependencies_parsed_at":"2025-02-06T07:44:05.164Z","dependency_job_id":"6ed35caa-bed0-457d-8dc2-b38b2c8b9826","html_url":"https://github.com/PublisherName/HotelBooking_API","commit_stats":null,"previous_names":["publishername/hotelbooking_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PublisherName%2FHotelBooking_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PublisherName%2FHotelBooking_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PublisherName%2FHotelBooking_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PublisherName%2FHotelBooking_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PublisherName","download_url":"https://codeload.github.com/PublisherName/HotelBooking_API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246408098,"owners_count":20772228,"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":[],"created_at":"2024-12-12T22:09:21.414Z","updated_at":"2025-03-31T02:44:20.410Z","avatar_url":"https://github.com/PublisherName.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Booking API Using C# and ASP.NET Core\nThis is a simple hotel booking API using C# and ASP.NET Core. It is a RESTful API that allows you to create, read, update and delete hotel bookings.\n\n### Prerequisites\n\n1. Install .NET SDK (8.0.101) and Runtime (8.0.1)\n\n    ```sh\n    sudo pacman -S dotnet-sdk\n    sudo pacman -S dotnet-runtime\n    dotnet tool install --global dotnet-ef\n    ```\n    \n## Getting Started\nTo get a local copy up and running follow these simple steps.\n\n1. Clone the repository\n   ```sh\n   git clone https://github.com/PublisherName/HotelBooking_API.git\n    ```\n\n2. cd into the project directory\n   ```sh\n   cd HotelBookingAPI\n   ```\n\n3. Update the appsettings.json file with your database connection string. Dummy connection string is provided inside the appsettings.json.back file.\n   ```sh\n    {\n    \"Logging\": {\n        \"LogLevel\": {\n            \"Default\": \"Information\",\n            \"Microsoft.AspNetCore\": \"Warning\"\n        }\n    },\n    \"AllowedHosts\": \"*\",\n    \"ConnectionStrings\": {\n        \"DefaultConnection\": \"server=\u003cmysql_server\u003e;database=\u003cdata_basename\u003e;user=\u003cusername\u003e;password=\u003cpassword\u003e\"\n    },\n    \"SecretKey\": \"\u003csecret_key\u003e\"\n    }\n   ```\n\n4. Install NuGet packages\n   ```sh\n   dotnet restore\n   ```\n\n5. Build the project\n   ```sh\n   dotnet build\n   ```\n\n6. Run the project\n   ```sh\n    dotnet run\n    ```\n\n7. Open the project in your browser\n    ```sh\n    https://localhost:5293/swagger/index.html\n    ```\n\n## Migration\n1. Add migration\n    ```sh\n    dotnet ef migrations add InitialCreate\n    ```\n2. Update database\n    ```sh\n    dotnet ef database update\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublishername%2Fhotelbooking_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpublishername%2Fhotelbooking_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublishername%2Fhotelbooking_api/lists"}