Project description
- https://github.com/teamName/repo
- https://github.com/teamName/repo
- https://github.com/teamName/repo
- https://github.com/teamName/repo
Some usage instructions
- Install the dependencies by running : npm install
- Install MySql DB locally
- Create database & tables by using : mysql -u root -p < schema.sql
- Run the seed script with : npm seed
- Run the node server with: npm server It will be hosted at port 3003
- Build the images component with: npm build
An nvmrc
file is included if using nvm.
- Node 6.13.0
- etc
From within the root directory:
npm install -g webpack
npm install
REQUEST (GET) : /house_images
RESPONSE : {"results":[{"id":1,"house_id":1,"description":"house 1 image 1","image_url":"https://s3.us-east-2.amazonaws.com/mash-bnb-fec/aaron-huber-401200-unsplash.jpg"},{"id":2,"house_id":1,"description":"house 1 image 2","image_url":"https://s3.us-east-2.amazonaws.com/mash-bnb-fec/andre-benz-283764-unsplash.jpg"},{"id":3,"house_id":1,"description":"house 1 image 3","image_url":"https://s3.us-east-2.amazonaws.com/mash-bnb-fec/annie-spratt-536921-unsplash.jpg"},{"id":4,"house_id":1,"description":"house 1 image 4","image_url":"https://s3.us-east-2.amazonaws.com/mash-bnb-fec/aaron-huber-401200-unsplash.jpg"},{"id":5,"house_id":1,"description":"house 1 image 5","image_url":"https://s3.us-east-2.amazonaws.com/mash-bnb-fec/mash-bnb-fec/andre-benz-283764-unsplash.jpg"}]}