In light of the housing crisis, FairBnB supports longer-term, affordable options for its users. Check out the live site here
-
Clone the repo here
-
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
-
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
-
Set up your database on your hosting site using the information from your .env file
-
Run the following in your backend terminal:
npx dotenv sequelize db:create
npx dotenv sequelize db:migrate
npx dotenv sequelize db:seed:all
-
Start the app up in both backend and frontend terminals by running
npm start
-
Now feel free to log in as the Demo User or create your own account