A module that displays all photos for a listed item.
- https://github.com/HRR47-FEC-Burke/seller-reviews
- https://github.com/HRR47-FEC-Burke/sidebar
- https://github.com/HRR47-FEC-Burke/main-photo
- Example URL: http://localhost:3001/item/50
- Items range from 1-99
All requests made to '/photo/api/item/:id' Create: POST - req body must contain 'url' field. Read: GET - no req body required. Update: PUT - req body must contain a 'id' and 'url' fields. Product with id will be updated. Delete: DELETE - req body must contain 'id' field. Product with id will be deleted.
-
Node.js v14.3.0
-
MongoDB v4.2.8
From within the root directory:
npm install
npm run seed
In two separate terminal windows:
npm run build:dev
npm run start:dev
npm test
npm run build
npm start
- Run $
docker-compose up -d
to start running the service on port 80