Skip to content

andrew-bierman/TreeBnb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TreeBnb

TreeBnb is a fictional treehouse rental platform inspired by Airbnb. It is built using JavaScript, Node.js, Express, React/Redux, and vanilla CSS and features a fully functional Express REST API and React front end.

Local Installation

To install and run the TreeBnb app locally, follow these steps:

Clone the repository: git clone https://github.com/andrew-bierman/Airbnb-Clone-Deployment

Navigate to the project directory in the terminal

Install dependencies: npm install in both backend and frontend folders

Run the app:

  • Backend folder:

Create a .env file to define environment variables

PORT=8000
DB_FILE=db/dev.db
JWT_SECRET=«generate_strong_secret_here»
JWT_EXPIRES_IN=604800
SCHEMA=«custom_schema_name_here»

Run openssl rand -base64 10 to generate a random JWT secret.

openssl rand -base64 10

Run the migrations and seed files to create models and populate demo data into the database. Then npm start to run the API.

npx dotenv sequelize-cli db:migrate
npx dotenv sequelize-cli db:seed:all
npm start
  • Frontend folder:
npm start

The app will be available at http://localhost:3000/.

Usage

To use the TreeBnb app, simply visit the URL listed above in your web browser. From there, you can browse the available treehouses and make reservations. Additionally you can visit the public deployment [here].(https://bierman-bnb.onrender.com/)

API Reference

The TreeBnb API is built using Express and has numerous endpoints relating to Users, Spots, Reviews, Images, and Bookings.

See the full API documentation and Database Schema in the Wiki section of this repo.

Contribution Guidelines

We welcome contributions to the TreeBnb project! If you have an idea for a new feature or spot a bug that needs fixing, please follow these steps to submit a pull request:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes and commit them to your branch.
  4. Push your branch to your fork on GitHub.
  5. Submit a pull request to the main repository.

Please note that all contributions must adhere to the project's code of conduct.

License

TreeBnb is licensed under the MIT License. This means that you are free to use, modify, and distribute the code as you see fit, as long as you include the original copyright and license notice.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published