Skip to content

escobot/file-metadata-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Metadata Microservice

Objective

Build a full stack app that is functionally similar to this: https://aryanj-file-size.herokuapp.com/.

Requirements

  • User Story: I can submit a FormData object that includes a file upload.

  • User Story: When I submit something, I will receive the file size in bytes within the JSON response

Hint: You may want to use this package: https://www.npmjs.com/package/multer

Notes

Requirements:

  • NodeJS
  • NPM
  • Docker (optional)

Run using NPM:

# install dependencies
npm install

# run app at localhost:8000
npm start

Run using Docker:

# build image
docker build -t pbgnz/file-metadata-microservice .

# run image
docker run -p 8000:8000 -d pbgnz/file-metadata-microservice

Usage

# submit webform image
http://localhost:8000

# post image via dataupload to
http://localhost:8000/upload