itp-dwd / 2020-spring

Repo for Dynamic Web Development Spring, 2020
26 stars 18 forks source link

[Database] Separate static assets vs. db data #25

Open joeyklee opened 4 years ago

joeyklee commented 4 years ago

One thing that comes up a lot is the need to store images. One quick-and-dirty solution is to store compressed small images as base64 strings in mongo, but better is to use static file hosting like S3.

This feels like an important thing to raise as considerations for development.

e.g. w/ heroku https://devcenter.heroku.com/articles/s3-upload-node