Comments (5)
@sungwoncho The way I see it, there's two approaches to this:
- we can store the books in a separate file from the notes, and have the notes "belong" to them, by including a book UID;
- we can used a nested JSON structure is ~/.dnote, where
notes
is a child of books.
I've got some code written for this - what approach would you prefer?
from dnote.
Seeing as though you've switched over to JSON anyway, that would probably be the best, right?
from dnote.
@zacoid55 Depends on multiple things - there can be something said for a flat structure, depending on the back-end and future extensibility. I personally think nesting should be the way to go, if we're strictly speaking about a RESTful JSON API on the back-end.
from dnote.
Sounds good to me 👍
from dnote.
I've just created a PR: #20 that solves this issue.
from dnote.
Related Issues (20)
- 404 Not Found /static/main.css HOT 1
- SIGSEGV with latest dnote client and selfhosted server HOT 6
- Improve error handling when SSL is invalid HOT 1
- Editing a note with CLI, removes the public flag when syncing to the server HOT 1
- Documentation website HOT 1
- not support darwin/arm64 HOT 1
- allow password pasting when logging into the sync server in the app HOT 2
- How to install 32bits? HOT 1
- Internal Server Error When Syncing Notes HOT 1
- 403 when using dnote sync HOT 1
- Response 429 "Too many requests" again. HOT 1
- web interface HOT 1
- darwin_arm64 cli binary is broken? HOT 5
- Use OnPremises rather than OnPremise
- GPG encryption HOT 1
- Allow to disable upgrade check HOT 3
- Simplify by removing dependency on Cobra HOT 1
- homebrew install broken HOT 1
- How do I have dnote.exe on Windows connect to a dnote docker host? HOT 1
- Error relocating dnote, need musl(libc) release HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnote.