lightBnb is a simple full-stack application that uses the PostgreSQL relational database system and Node to manage the backend. HTML, CSS3, SASS and JQuery have been used to create the front-end.
- bcrypt
- body-parser
- cookie-session
- express
- nodemon
- pg
- PostgreSQL
Clone the remote repo to a folder named lightbnb
First a test database (db) must be created with seed data in it:
cd lightbnb
- Start the PostgreSQL server by using the
psql
command in your CLI. - Create the lightbnb db using
CREATE DATABASE lightbnb;
- Connect to the db using
\c lightbnb
- Add tables to the db using
\i migrations/01_schema.sql
- Add seed data using
\i seeds/02_seeds.sql
cd LightBnB_WebApp-master
and install dependencies using thenpm install
command.- Start the web server using the
npm start
command. The app will be served at http://localhost:3000/. You should see aConnected to the database successfully!!
message on the CLI. - Go to http://localhost:3000/ in Google Chrome ot access the application.
- Properties from the seed data can be searched using optional query parameters via the search link.
- User can log in via emails from the seed data.
- Once logged in, a new listing can be added with the Create Listing link. Also, existing reservations and their own property listings can be seen.
- Lastly, new users can be added by clicking the Sign Up link.
- This application has only been tested in Google Chrome so far therefore behavior could be unexpected in other browsers.
- The seed data is fake data.
- Front end leaves something to be desired for.
- This setup process assumes user has PostgreSQL already installed.