This project is a web application for managing guesthouses. It allows guesthouse owners to register their guesthouses, manage rooms, and handle bookings. It also allows users to search for guesthouses, book rooms, and make payments. It's a project from the treinaDev Bootcamp from Campus Code school.
- User registration and authentication
- Guesthouse registration
- Room management
- Booking system
- Payment system
- Ruby version 3.0.0
- Ruby on Rails version 7.1.1
- Devise for authentication
- SQLite3 for database
- RSpec for testing
- Capybara for testing
To run this project locally, follow these steps:
- Clone the repository:
git clone [email protected]:DanSmaR/guesthouse_app.git
- Navigate to the project directory:
cd projectname
- Install dependencies:
bundle install
- Drop the database:
rails db:drop
- Set up the database:
rails db:create db:migrate
- Seed the database:
rails db:seed
- Start the server:
rails server
To run the tests, run rspec
in the project directory.
The database is seeded with a default user with the following credentials:
User 1 - Guesthouse Owner
- name: João
- email: [email protected]
- password: password
User 2 - Guest
- name: Marcia
- email: [email protected]
- password: password
The user João already has a complete profile, with a guesthouse, rooms and rooms_rates. The user Marcia is a guest with reserved bookings.
Contributions are welcome. Please open a pull request with your changes.