Get your luxury listing noticed or plan your next adventure now on Heir B&B!
List of features needed for the Minimum Viable Product (MVP) and its CRUD features
Schema of how PostgreSQL database will be set up
Features
- Create/ delete/ edit listings
- Add/ edit/ delete reviews of listing
- Create/ edit/ delete/ bookings
- See lists of your reservations and hosted listings on User Profile
Technologies Used
- React.js
- JavaScript
- Express
- Heroku
- Node.js
- PostgreSQL
To use this app complete the following steps:
-
Clone this repo
- [email protected]:BrandonCope/heir-b-and-b.git
-
Install dependencies in the backend and the frontend directories.
- 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 directory based on the .env.example found wihtin the directory.
-
Enter your username and password information into your .env file along with your desired database name, a secure combination of charaters for your JWT_SECRET, and your desired PORT (preferably 5000).
-
Add the following proxy to your package.json file with your frontend directory, replacing or keeping the 5000 port to match your PORT configuration in your .env.file.
-
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
-
Then start the services in the frontend directory. Which should open the project in your default browser. If not, navigate to http://localhost:3000 in your browser.
- npm start
-
You can use the Demo user or create an account to begin using Heir B&B.