Lurnby icon indicating copy to clipboard operation
Lurnby copied to clipboard

Decouple from Amazon

Open Roznoshchik opened this issue 2 years ago • 1 comments

For storing image content the app currently sends images to amazon s3. This is fine for the web-app version, but if the app is meant to run locally, then it's not necessary.

There should be a flag somewhere to determine if this is supposed to be a web app or an offline app and removes the Amazon dependency if that's the case.

Roznoshchik avatar Feb 12 '22 06:02 Roznoshchik

Think this can likely be solved by doing the following.

  1. Adding an env variable such as UPLOAD_IMAGES=1
  2. Keeping the upload to Amazon code behind an if os.environ.get('UPLOAD_IMAGES'):
  3. changing img src to point to the on disk location of the saved images.

Roznoshchik avatar Feb 24 '22 21:02 Roznoshchik