Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raihan2bd/hotel-bookings
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.
https://github.com/raihan2bd/hotel-bookings
bootstrap css go golang html javascript postgresql
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/raihan2bd/hotel-bookings
- Owner: raihan2bd
- License: mit
- Created: 2022-09-22T03:08:42.000Z (over 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-03-08T05:03:31.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T01:48:16.037Z (7 months ago)
- Topics: bootstrap, css, go, golang, html, javascript, postgresql
- Language: Go
- Homepage:
- Size: 22.4 MB
- Stars: 25
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Hotel Bookings - using Go (golang)
Hotel 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.
I used Go (golang), PostgreSQL, Bootstrap, Html, Javascript and css to build this project.
Full Stack
- Go
- PostgreSQL
- Bootstrap
- JAVASCRIPT
- Html
- CSS
Dependencies
- Chi router
-
Alex edwards SCS Session Manager -
Nosurf for CSRFToken -
pgx Database Driver -
simple mail To create a simple server -
Go validator server side form validator
## Demo
![Capture](https://user-images.githubusercontent.com/35267447/223337938-c8ab34f0-20c6-4d8e-b47a-10558d3c7beb.PNG)
![Capture2](https://user-images.githubusercontent.com/35267447/223337986-d66dc7e1-8cc0-4f83-a980-6a9989a48d30.PNG)
![Capture3](https://user-images.githubusercontent.com/35267447/223338009-dc633d11-d320-4579-a8c9-e0e087a415ae.PNG)
![Capture4](https://user-images.githubusercontent.com/35267447/223338037-c9291368-8963-4b16-8704-632aca0e7dbb.PNG)
## 💻 Getting Started
- To get star with this package first of all you have to clone the project ⬇️
``` bash
https://github.com/raihan2bd/hotel-bookings.git
```
- Then Make sure you have install [Go (golang)](https://go.dev/dl/) version 1.8.0 or latest stable version.
- Then make sure you have install [PostgreSQL](https://www.postgresql.org/) on your local mechine if you want to use this project as localy.
- To install all the Go packages navigate the folder address on your terminal and enter the below command ⬇️
``` bash
go mod tidy
```
- 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.
![Capture5](https://user-images.githubusercontent.com/35267447/223344475-c64994c5-8a73-44d7-a571-5d3247c8db74.PNG)
- To setup database tables and columns by onClick install [soda cli database migration tool](https://gobuffalo.io/documentation/database/soda/) Then run below command ⬇️
```sh
soda migrate
```
# Usages
> *Note: Before enter the below command make sure you are in the right directory.*
- After finishing the avove instructions you can see the project in your local mechine by entering the below command ⬇️
```bash
./run.bat
```
or
```sh
go run cmd/web/main.go cmd/web/routes.go cmd/web/middleware.go cmd/web/send-mail.go
```
- 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.
## 👥 Author
👤 **Abu Raihan**
- GitHub: [@githubhandle](https://github.com/raihan2bd)
- Twitter: [@twitterhandle](https://twitter.com/raihan2bd)
- LinkedIn: [LinkedIn](https://linkedin.com/in/raihan2bd)
I would like to thatnks [Trevor Sawler](https://github.com/tsawler) Who help me a lot learn go with this project.
> Thanks for visiting my repository. Give a ⭐️ if you like this project!
This project is [MIT](./LICENSE) licensed.
## Contribution
*Your suggestions will be more than appreciated. If you want to suggest anything for this project feel free to do that. :slightly_smiling_face:*