mondaynightpinball / main

Main website for MNP
GNU General Public License v3.0
3 stars 8 forks source link

Save pics to scalable storage #44

Open geoffsimons opened 6 years ago

geoffsimons commented 6 years ago

We should use the same method that we learned at Code Fellows to upload images to S3 and then just store the image URL as part of the game object.

geoffsimons commented 6 years ago

This is the project (or continuation of the project) that has examples of using image upload. This is more for an example of using AWS S3 in a promise based interaction. https://github.com/geoffsimons/34-filters_and_directives

And this is a good example of the server side router: https://github.com/mondaynightpinball/server/blob/master/route/pic-route.js

Given some of the refactoring that I was able to do to the site, it should be fairly simple to more or less drop that router right in, set the env vars, and we'll be good to go on the server side.