LightBnB is a fullstack project which allows users to manage properties, make reservations, as well as adding reviews for their past bookings.
A combination of HTML, CSS, JS, jQuery, AJAX and SQL skills plus usage of Node, Express and PSQL platforms are used to complete the project.
- Go to LightBnB Page, fork and clone the repo to local.
- Cd into the repository and install all dependencies (using the
npm install
command). - Go to PSQL, create an database named lightbnb and use follow as login info:
user:
"vagrant",password:
"123",host:
"localhost",database:
"lightbnb"
- Run schema and seeds in PSQL by using following code:
\i migrations/01_schema.sql
\i seeds/01_seeds.sql
\i seeds/02_seeds.sql
- Set up server by
npm run local
command in terminal. - In web browser (Chrome preferred) open this page
- known bugs: when deleting properties or avilabilities, if the page does not refresh after clicking delete button, need to manual refresh page
main page
search property
create property
my reservation
my property
manage property availability
property review page
- "bcrypt": "^3.0.6",
- "cookie-session": "^1.3.3",
- "express": "^4.17.1",
- "nodemon": "^1.19.1",
- "pg": "^8.7.1"