Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 2.81 KB

README.md

File metadata and controls

51 lines (31 loc) · 2.81 KB

Welcome to FairBnB, an AirBnB clone created by Taylor McClerin!

In light of the housing crisis, FairBnB supports longer-term, affordable options for its users. Check out the live site here

Index

Technologies Used:

Splash Page

splash

Single Spot with Reviews

singleSpot


Getting it up and running

  1. Clone the repo here

  2. Install the dependencies by running npm install in both front and backend folders

    • Having two separate terminals open to the back and front end folders respectively is recommended
  3. Create a .env file in the backend folder with the following inputs:

    • PORT=8000
    • DB_FILE=db/dev.db
    • JWT_SECRET= unique_key
    • JWT_EXPIRES_IN=604800
    • SCHEMA= unique_schema_name
  4. Set up your database on your hosting site using the information from your .env file

  5. Run the following in your backend terminal:

    • npx dotenv sequelize db:create
    • npx dotenv sequelize db:migrate
    • npx dotenv sequelize db:seed:all
  6. Start the app up in both backend and frontend terminals by running npm start

  7. Now feel free to log in as the Demo User or create your own account