For Bearbnb sample product page. This app was kept lightweight by using only React, Bootstrap, Express, PostgreSQL, Knex.js, and a healthy dose of CSS. This page utilizes responsive design layouts for large to mobile screen sizes.
This service is currently deployed on AWS Elastic Beanstalk at http://bearbnbphotos.us-east-2.elasticbeanstalk.com/rooms/1/. Additional listings can be found at endpoints /rooms/1 to /rooms/100. This page was original displayed on a proxy page along with a booking and reviews service.
- https://github.com/airbnbers/ - For proxy server, booking, and reviews services.
- Ensure postgreSQL is install and running.
- Install with 'npm install'.
- Create a config.js file with your postgreSQL password.
- Generate data with 'npm run seed'.
- Build bundle.js with 'npm run build-webpack'.
- Run service with 'npm start' and visit `http://localhost:3001' to view service.
An nvmrc
file is included if using nvm.
Test:
npm test
Create config.js with your database password.
From within the root directory:
npm install -g webpack
npm install