Week 5 group project for Makers. This is a web app to list and book spaces.
- Clone this repo
- Run bundle in your terminal
- Create a production database and a test database (we recommend the names 'makersbnb' & 'makersbnb_test')
- Connect to each database and run the commands in db/migrations/ in order
- Run:
rackup -p 3000
- In your browser go to localhost:3000
As a host
So I can advertise spaces
I would like to post ‘spaces’ (with id, name, short description and price per night)
As a guest
So I can find a place to stay
I would like to view a list of spaces
As a host
So I post a space as my own
I want to sign up for an account
As a host
So only I can post my own space
I want to sign in to my account
As a host
So I can avoid others posting as me
I want to sign out of my account
As a guest
So I can request a space as myself
I want to sign up for/log in to/log out of an account
As a guest
So I can see what’s available to me
I want to see available dates for each space
As a guest
So I can stay in a space
I want to request an available space
As a host
So a guest can stay in my space
I want to confirm a request
As a host
So I don’t disappoint guests
I want my space’s availability to change when a booking is confirmed
- Email and password validations for signing up and logging in
- Listings searchable by date and name
- Secure password using BCrypt
- Dealing with edge cases for username and password
(data is just an example)
user_id | name | password | |
---|---|---|---|
4 | Bob | [email protected] | Pa55word! |
listing_id | name | description | price | user_id |
---|---|---|---|---|
26 | Bob's Boudoir | Bold | 1000 | 4 |
booking_id | confirmed | start_date | end_date | listing_id | user_id |
---|---|---|---|---|---|
1 | false | 2021-08-02 | 2021-08-04 | 26 | 8 |