{"id":20411074,"url":"https://github.com/raihan2bd/hotel-bookings","last_synced_at":"2025-04-12T16:06:15.336Z","repository":{"id":67861762,"uuid":"539776440","full_name":"raihan2bd/hotel-bookings","owner":"raihan2bd","description":"Hotel Bookings full-stack project built using Go and postgresql is likely a web application that allows users to search for available hotels, view room details, and make reservations. It may include features such as user authentication, and integration with third-party APIs for displaying hotel information and availability.","archived":false,"fork":false,"pushed_at":"2023-03-08T05:03:31.000Z","size":23485,"stargazers_count":30,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-26T10:36:10.243Z","etag":null,"topics":["bootstrap","css","go","golang","html","javascript","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raihan2bd.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-09-22T03:08:42.000Z","updated_at":"2025-02-10T05:54:05.000Z","dependencies_parsed_at":"2023-04-18T05:04:41.774Z","dependency_job_id":null,"html_url":"https://github.com/raihan2bd/hotel-bookings","commit_stats":null,"previous_names":["raihan2bd/bookings"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fhotel-bookings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fhotel-bookings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fhotel-bookings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fhotel-bookings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raihan2bd","download_url":"https://codeload.github.com/raihan2bd/hotel-bookings/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248593759,"owners_count":21130312,"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":["bootstrap","css","go","golang","html","javascript","postgresql"],"created_at":"2024-11-15T05:49:28.364Z","updated_at":"2025-04-12T16:06:15.291Z","avatar_url":"https://github.com/raihan2bd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Bookings - using Go (golang)\n\u003cp\u003eHotel Bookings project built using Go and postgresql is likely a web application that allows users to search for available hotels, view room details, and make reservations. It may include features such as user authentication, and integration with third-party APIs for displaying hotel information and availability.\u003c/p\u003e\n\n### Tech Stack \u003ca name=\"tech-stack\"\u003e\u003c/a\u003e\n\nI used Go (golang), PostgreSQL, Bootstrap, Html, Javascript and css to build this project.\n  \u003csummary\u003eFull Stack\u003c/summary\u003e\n  \u003cul\u003e\n    \u003cli\u003eGo\u003c/li\u003e\n    \u003cli\u003ePostgreSQL\u003c/li\u003e\n    \u003cli\u003eBootstrap\u003c/li\u003e\n    \u003cli\u003eJAVASCRIPT\u003c/li\u003e\n    \u003cli\u003eHtml\u003c/li\u003e\n    \u003cli\u003eCSS\u003c/li\u003e\n  \u003c/ul\u003e\n\n \u003csummary\u003eDependencies\u003c/summary\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/go-chi/chi\"\u003eChi router\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/alexedwards/scs/v2\"\u003eAlex edwards SCS \u003c/a\u003e Session Manager\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/justinas/nosurf\"\u003eNosurf\u003c/a\u003e for CSRFToken \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/jackc/pgx/v4\"\u003epgx\u003c/a\u003e Database Driver\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/xhit/go-simple-mail/v2\"\u003esimple mail\u003c/a\u003e To create a simple server\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/asaskevich/govalidator\"\u003eGo validator\u003c/a\u003e server side form validator\u003c/li\u003e\n  \u003c/ul\u003e\n\n## Demo\n![Capture](https://user-images.githubusercontent.com/35267447/223337938-c8ab34f0-20c6-4d8e-b47a-10558d3c7beb.PNG)\n![Capture2](https://user-images.githubusercontent.com/35267447/223337986-d66dc7e1-8cc0-4f83-a980-6a9989a48d30.PNG)\n![Capture3](https://user-images.githubusercontent.com/35267447/223338009-dc633d11-d320-4579-a8c9-e0e087a415ae.PNG)\n![Capture4](https://user-images.githubusercontent.com/35267447/223338037-c9291368-8963-4b16-8704-632aca0e7dbb.PNG)\n\n\n## 💻 Getting Started\n- To get star with this package first of all you have to clone the project ⬇️\n``` bash\nhttps://github.com/raihan2bd/hotel-bookings.git\n```\n- Then Make sure you have install [Go (golang)](https://go.dev/dl/) version 1.8.0 or latest stable version.\n- Then make sure you have install [PostgreSQL](https://www.postgresql.org/) on your local mechine if you want to use this project as localy.\n- To install all the Go packages navigate the folder address on your terminal and enter the below command ⬇️\n``` bash\ngo mod tidy\n```\n- After downloading the packages you should rename example.database.yml file name to database.yml file and edit database credentials to your own database information.\n![Capture5](https://user-images.githubusercontent.com/35267447/223344475-c64994c5-8a73-44d7-a571-5d3247c8db74.PNG)\n- To setup database tables and columns by onClick install [soda cli database migration tool](https://gobuffalo.io/documentation/database/soda/) Then run below command ⬇️\n```sh\nsoda migrate\n```\n\n\n# Usages\n\u003e *Note: Before enter the below command make sure you are in the right directory.*\n\n- After finishing the avove instructions you can see the project in your local mechine by entering the below command ⬇️\n```bash\n./run.bat\n```\nor \n```sh\ngo run cmd/web/main.go cmd/web/routes.go cmd/web/middleware.go cmd/web/send-mail.go\n```\n\n- Then you can see this project live on your browser by this link http://localhost:8080 or your given the port nuber you set for the project.\n\n\n## 👥 Author\n\n👤 **Abu Raihan**\n\n- GitHub: [@githubhandle](https://github.com/raihan2bd)\n- Twitter: [@twitterhandle](https://twitter.com/raihan2bd)\n- LinkedIn: [LinkedIn](https://linkedin.com/in/raihan2bd)\n\n## 🙏 Acknowledgments \u003ca name=\"acknowledgements\"\u003e\u003c/a\u003e\n\nI would like to thatnks [Trevor Sawler](https://github.com/tsawler) Who help me a lot learn go with this project. \n\n## ⭐️ Show your support \u003ca name=\"support\"\u003e\u003c/a\u003e\n\n\u003e Thanks for visiting my repository. Give a ⭐️ if you like this project!\n\n## 📝 License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT](./LICENSE) licensed.\n\n## Contribution\n*Your suggestions will be more than appreciated. If you want to suggest anything for this project feel free to do that. :slightly_smiling_face:*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2bd%2Fhotel-bookings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraihan2bd%2Fhotel-bookings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2bd%2Fhotel-bookings/lists"}