A simple multi-page Airbnb clone that uses server-side Javascript to display the information from queries to web pages via SQL queries.
- Create a new repository using this repository as a template.
- Open the LightBnB_WebApp directory and run
npm install
to confirm all dependencies have been installed. - In the same directory, start the web server using the
npm run local
command. The app will be served at http://localhost:3000/. - Go to http://localhost:3000/ in your browser.
- Create a new database in psql with
CREATE DATABASE lighbnb
and connect to the database using\c lightbnb
- Once connected run
\i migrations/01_schema.sql
to create all tables (make sure that the DROP statements at the top of the file are not commented out). Use\dt
to confirm that the tables have been created. - To fill the tables with the correct data, run
\i seeds/02_seeds.sql
. It is always good to run a test query to confirm that the data has been inserted properly. - You are ready to use the LighBnB webpage!
- Bcrypt
- Body-parser
- Cookie-session
- Express
- Nodemon
- pg
LightBnB.recording.mp4
Screenshot of Entity Relationship Diagram: