HearthHopper is a clone of Airbnb. Live Site
-
Clone this repo.
- git clone git@github.com:rammartinez00/HearthHopper.git
-
Install dependencies from the root directory.
- npm install
-
Create a PostgresQL user with CREATEDB and PASSWORD in PSQL.
- CREATE USER WITH CREATEDB PASSWORD <'password'>
-
Create a .env file in the backend backend directory based on the .env.example found within the respective directory.
-
Enter your username and password information into your .env file along with your desired database name, a secured combination of characters for your JWT_SECRET, and your desired PORT.
-
Add the following proxy to your package.json file within your frontend directory, replacing or keeping the same port from your .env file.
- "proxy": "http://localhost:5000"
-
Create Database, Migrate, and Seed Models.
- npx dotenv sequelize db:create
- npx dotenv sequelize db:migrate
- npx dotenv sequelize db:seed:all
-
Start the services in the backend directory.
- npm start
-
Start the services in the frontend directory.
- npm start
-
Log in as a Demo user, or create an account.