Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 774 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 774 Bytes

File Upload Demo

Overview

This is a demo on how to build a Node server to preview and upload files via HTML Forms and Multer.

Deployment

You can run this in a Dockerfile via the image docker run -p 5000:5000 mckp/file-upload-demo

Development

yarn #install deps
yarn dev # run server locall for dev

Environment Variables

There are some things we can toggle via env vars. See .env for more details

# you can see defaults set inside of `app/env.js`
# Set to _anything_ to be to true
# do not set or set to empty to be false
SHOW_UPLOADED_IMAGE=
# if the above is false, what file would
# you like us to serve, based in public/img/<name>
HARDCODED_FILENAME=contours-big.png
# what port do you want the system to listen on?
PORT=5000