IMP1 / jotter

https://imp1.github.io/jotter/?note=https://raw.githubusercontent.com/IMP1/jotter/gh-pages/test_data/1.json
0 stars 0 forks source link

[storage] Decide on data storage #4

Open IMP1 opened 5 years ago

IMP1 commented 5 years ago

I originally thought it would be cool to store the project data on Google drive so you could use the app on the go.

Maybe it would also be nice to be able to store project data locally in a database, or somewhere else. So add that as a configuration.

Also should I do a little server for updating the project data as the user works on it? And it would also serve the notes' HTML.

I think for now getting the front end sorted just using github for a single test project, with data stored in this repo/as gists.

IMP1 commented 5 years ago

For now maybe use gists? there's an API that github uses that might be nice.

IMP1 commented 5 years ago

Notes could have a field which determined the API calls it used to get/set/update data. If the field is missing, it will use its parents field (cascading up). Most often this will just be set in the project (top-level) note, but this allows for flexibility. This also means you can have multiple projects using different APIs sharing instances of the same notes, because the project's notes are not tied in to its API usage.