ninjawithkillmoon / gloomhaven-thearcanelibrary

The Arcane Library - a Gloomhaven campaign tracker
https://ninjawithkillmoon.github.io/
36 stars 16 forks source link

Save Files to Cloud #8

Closed ninjawithkillmoon closed 7 years ago

ninjawithkillmoon commented 7 years ago

Store save games somewhere online. Needs to have appropriate authentication and authorization framework.

Should probably store games as JSON objects in some kind of NoSQL database? Not really important though, as long as it works.

We should still keep the manual save ("export") method currently in use to allow players to play more offline.

ninjawithkillmoon commented 7 years ago

Consider saving files manually to users Dropbox:

https://www.dropbox.com/developers/saver https://www.dropbox.com/developers/chooser

This isn't quite a full implementation of cloud saving, but should work on Chrome and Safari mobile browsers that are currently having issues. Is also better than attempting to save and load locally on mobile devices where file management isn't quite as easy as a desktop.

ninjawithkillmoon commented 7 years ago

The Dropbox Chooser works fine, but it turns out the Saver can only save files to a users Dropbox from a publicly available URL, which of course we don't have. Dropbox integration would then require a more involved integration with their API.

ninjawithkillmoon commented 7 years ago

Dropbox Saver might work with this service: https://www.file.io. Upload a file, which gives a URL that is then supplied to Dropbox?

ninjawithkillmoon commented 7 years ago

Or http://myjson.com/about

ninjawithkillmoon commented 7 years ago

Have implemented using the MyJSON service. Seems a little dodgy using this service just as temporary file storage when I never need to access them again.

Should probably look at properly implementing auto saving to Dropbox or Firebase at some point in the future, but for now this will help with a lot of the browser issues on some operating systems.