Skip to content

alicechang29/sharebnb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors LinkedIn


ShareBnB

ShareBnB is an Airbnb clone created during my time at Rithm School with my partner, @ndrjao, built over the course of 4 days.
The backend was built with: Python, Flask, WTForms, SQLAlchemy, PostgreSQL.
The frontend was built with Javascript, React, Tailwind.
Images are stored within AWS S3 buckets.

[product-screenshot] [product-screenshot]

Getting Started

To run this app locally:

  1. Clone the repo
git clone https://github.com/alicechang29/sharebnb.git
  1. cd into backend/
  2. Start Python Virtual Environment
python3 -m venv venv
  1. Activate Venv and Pip install requirements
$ source venv/bin/activate
(venv) $ pip3 install -r requirements.txt
  1. Start the Flask server
flask run -p 5001
  1. Open another terminal window
  2. cd into frontend/
  3. NPM install
npm i
  1. Start npm
npm run start

My Learnings

I learned a lot during this project, such as:

  • How to setup and AWS S3 bucket along with AWS IAM user accounts and permissions
  • It is possible to send multi-part forms using Insomnia (we did not know this initially and created an entire form in React to test if the image upload to S3 worked)
  • Using the POST listings route as a "conductor function" to handle adding listings data to the database, generating a UUID for images uploaded in order to store it in S3, and uploading the image to S3
  • Form data is sent to backend as an object, and if there are images, it will be within request.files

In the Future

There are many more features that I want to add to this project, which include:

  • Finishing user authentication/authorization
  • Adding Tests
  • Search and filtering
  • User Profiles

About

Platform for short-term rental listings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published