Skip to content

brandonflores647/Fairbnb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fairbnb

Airbnb clone

'Fairbnb' is a place for users to discover awesome bed and breakfast spots posted by others. Checkout the fair booking prices and plan your next stay. Give your feedback to the community with reviews to talk about your most recent stay. Design inspired by Airbnb.

Technologies Used

React Redux Express.js Node.js PostgreSQL Sequelize

Future Features:

  • Spot Filters
  • Google Maps
  • Favorite Spots
  • Reply to reviews

Local Setup:

Setting Up and Starting a Local Server

1. Download code and npm install in /backend to install all node dependencies for backend server.

2. Create a psql db user with createdb privileges.

   - Duplicate the .env.example for the dotenv package.

   - Update the following variables:

     - PORT the port that the server will listen to, 8080 by default
     - DB_USERNAME the user of the created psql db user
     - DB_PASSWORD the password for the psql db user
     - SESSION_SECRET a session secret key for encrypting session id's in the database
       - All other variables should remain the same

3. Setup PostgreSQL database

   - Run npx dotenv sequelize db:create
   - Run npx dotenv sequelize db:migrate
   - Run npx dotenv sequelize db:seed:all

4. Start express server by running npm start in the /backend directory
5. The backend server will start on http://localhost:5000
6. Run `npm install` in `/frontend` to install dependencies for frontend server.
7. Run `npm start` in the `/frontend` directory
8. The frontend server will be live on http://localhost:3000 by default

Overview

Login / Signup

login

Spots

spots

Bookings

bookings

Reviews

reviews

Created By

Brandon Flores

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published