Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File system storage #42

Open
awmartin opened this issue May 6, 2020 · 0 comments
Open

File system storage #42

awmartin opened this issue May 6, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@awmartin
Copy link
Owner

awmartin commented May 6, 2020

Motivation

As an author self-deploying Doctoral, I want the ability to use the file system, instead of a running database, for storage, because I want to use a syncing service like Dropbox to manage backups, or I don't want the complexity of running such a database alongside the Express backend.

Design

Provide a way to switch to the file system when initializing the server and specify a path, either in a config file or in the command to launch the server.

Store the table of contents in a json file, contents.json, for now. Each document should have its own JSON file.

Acceptance

  • Given the express server code,
  • when I start the server and specify the folder to store my data
  • and I start the front-end and create/edit documents
  • then I observe the appropriate files (see Design above) in the folder I specified that contain the contents of my documents.
@awmartin awmartin self-assigned this May 6, 2020
@awmartin awmartin added the enhancement New feature or request label May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant