storycopter / storycopter-app

Storycopter App — Part of Storycopter, a new interactive documentary production suite for the Web.
https://storycopter.com
BSD 2-Clause "Simplified" License
11 stars 2 forks source link

Filesystem read/write starter on top of the electron boilerplate. #44

Closed piotrfonte closed 4 years ago

piotrfonte commented 4 years ago

Please check packages/idoc/src/chapters and packages/idoc/src/essentials for naming conventions and folder structure.

When opening a project folder we need:

Also… we don’t need to be running any Gatsby tasks till Preview or Export being triggered from the app.

piotrfonte commented 4 years ago

This is what we are reading from and writing to:

https://github.com/storycopter/storycopter/tree/next/packages/idoc/src/site — global settings for the idoc https://github.com/storycopter/storycopter/tree/next/packages/idoc/src/essentials — related mainly to Home/Credits pages https://github.com/storycopter/storycopter/tree/next/packages/idoc/src/chapters — all the user generated pages, we need to be able to create similar jsons when creating new pages…

piotrfonte commented 4 years ago

So we need to be able to scan through these folders https://github.com/storycopter/storycopter/issues/44#issuecomment-581469245, load all these jsons, construct a state object that looks like this: https://github.com/storycopter/storycopter/blob/feature/51-document-inspector/packages/app/src/reducers/data.js#L24-L32 and save changes to disk before each preview and export