Skip to content

FangNYC/Booking

 
 

Repository files navigation

Booking

by Louis Otter

System Design by Ben Mangold

Booking Component Referencing AirBnB

React, Node.js, MySQL, MongoDB, CockroachDB

FangNYC fork by Ben Mangold

System Design

Trello Task Board

Engineering Journal

DB is configured for Ben's local dev env

Adjust for your local MySQL installation in /database/dbConnection.js

Install

npm run install

Test

npm run test exit with ctrl-c

Seed local DB

Reset mySQL

mysql -u root < schema.sql no local mysql pw mysql -u root -p < schema.sql with local mysql pw

npm run seed - creates, or appends data to apartment.csv and dates.csv. then seedes mySQL and mongoDB

Start Dev

npm run react-dev npm run server-dev

EC2 Deployment

This web service is intended to run on an EC2 instance Permissions .pem files are ignored by git

ssh -i "<permissions>.pem" <EC2_DNS>

Cockroach DB

This app can utilize a cockroachDB cluster deployed on Digital Ocean. See ROACH_README.md for more details

About

Booking Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%