Skip to content

mguan2020/BedandBreakfast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bed and Breakfast Application

This is a bookings and reservation web application for a bed and breakfast establishment. It is built using the Go programming language.

Link to the website

Features

  • User Authentication: Users are required to log in with a username before they can access the application.
  • Make Reservation: Users can make a reservation from a specified start date to end date.
  • Check Availability: Before they make a reservation, users can enter in a start to end date range to check availability.
  • Admin Panel: The application provides property owners (admin) with a dashboard to manage user reservations.
  • Email: The application uses a SMTP mail server called Mailhog to permit property owners to send emails to their clients.
  • Logout: Users can log out from the application.

Tech Stack

The application incorporates the following technologies:

  • Go: A programming language used for building the backend server and handling business logic.
  • HTML/CSS: Implement frontend webpages.
  • AWS EC2: Cloud platform used to host web application.
  • Docker: Containerization technology used to automate deployment of application.

Setup Instructions

To run the application locally, follow these steps:

  1. Clone the repository
  2. Navigate to the project directory
  3. Install Go and dependencies
  4. Install PostgreSQL and create a database called bookings
  5. Install soda
  6. Generate the database schema using migration files
  • Run the command: "soda migrate"
  1. Build the project
  • Run the command: "go build -o bookings cmd/web/*.go"
  1. Run the program
    • Run the shell script called run.sh by typing in "./run.sh"
  2. Open your web browser
    • Visit http://localhost:8080 to access the application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published