Skip to content

HRR47-SDC-OMalley/main-photo

Repository files navigation

ReBurke / main-photo

A module that displays all photos for a listed item.

Related Projects

Table of Contents

  1. Usage
  2. Requirements
  3. Development
  4. Production
  5. Deployment

Usage

Crud

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.

Requirements

Development

Installing Dependencies

From within the root directory:

npm install

Seeding Database

npm run seed

Development Server

In two separate terminal windows:

npm run build:dev
npm run start:dev

Testing

npm test

Production

Webpack Production Build

npm run build

Node Express Server

npm start

Deployment

  • Run $ docker-compose up -d to start running the service on port 80

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published