Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 1.64 KB

README.md

File metadata and controls

68 lines (42 loc) · 1.64 KB

ShareBnB Backend

A RESTful API for a outdoor space sharing platform built with Express.js. Built to interact with data about users, listings, and messages, as well as authentication/authorization.

Demo: https://rbrown-sharebnb.netlify.app

Link to frontend repo: https://github.com/ross-brown/sharebnb-frontend

Tech Stack

alt text

alt text

alt text

alt text

Features

  • AWS S3 image upload functionality to show photos for posted listings
  • JSON Schema for server-side validation of JSON requests
  • Custom Object-oriented ORM with classes to communicate with PostgreSQL database
  • JSON Web Tokens for authentication

Run Locally

Go to the project directory after cloning the repo

cd sharebnb-backend

Install dependencies

npm install

Create and seed the database

$ psql -f sharebnb.sql

Start the server

npm start

Future Features

  • Write tests ✅
  • Delete and Edit a Listing ✅
  • Available table in DB, book a listing for certain dates
    • Possibily add a calender date-picker
  • Admin accounts
  • More filters for searching listings
  • Add TypeScipt with Express

Authors