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

Repository plan #21

Closed
Rokt33r opened this issue Apr 17, 2016 · 2 comments
Closed

Repository plan #21

Rokt33r opened this issue Apr 17, 2016 · 2 comments
Milestone

Comments

@Rokt33r
Copy link
Member

Rokt33r commented Apr 17, 2016

Repository plan

User will be able to select any folder to use as a note repository from v0.6.*.
It has been designed to be handled by Git properly.

root
 |- data
     |-note1.cson
     |-note2.cson
     |-note3.cson
 |- boostrepo.json

boostrepo.json

{
  name: String,
  author: String, // Same convention of package.json, `John Doe <email@example.com> (http://example.com)`
  remotes: [{
    name: String,
    url: String, // url of git remote
    branch: String // if branch isn't set, it will try to use `master` branch.
  }],
  folders: [{
    key: String // Unique sha1 hash key to identify folder,
    name: String,
    color: String // All CSS color formats available.
  }]
}

data directory

Every note will be saved here as a single CSON file to git diff efficiently.

This is because CSON supports Multiline string.

File name of each cson file will be used to identify note.
Commonly, Boostnote will automatically generate sha1 key and use it as a file name when creating a new note.

note.cson

name: String
tags: [String] // tags
folder: String // hash key of folder
mode: String // syntax mode
title: String
content: String
createdAt: Date
updatedAt: Date
@Rokt33r Rokt33r added this to the v0.6.0 milestone Apr 17, 2016
@Rokt33r Rokt33r mentioned this issue Apr 21, 2016
@Rokt33r
Copy link
Member Author

Rokt33r commented May 3, 2016

For further information check the comment of https://github.com/BoostIO/Boostnote/blob/0.6.0/browser/lib/Repository.js

@Rokt33r
Copy link
Member Author

Rokt33r commented Jul 24, 2016

Canceled

@Rokt33r Rokt33r closed this as completed Jul 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant