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

Figure out how to store data #6

Open
cheshire137 opened this issue Apr 23, 2015 · 0 comments
Open

Figure out how to store data #6

cheshire137 opened this issue Apr 23, 2015 · 0 comments

Comments

@cheshire137
Copy link
Member

Data we want to store:

  • Access and refresh token from Github for performing authenticated actions on behalf of the user (part of OAuth flow)
  • IDs of Gists created by the user
  • User Github name
  • Paths to files that have Gists, e.g., /Users/sarah/code/lexladiescode/myfile.txt
  • Line numbers in a file that have a Gist, e.g., line 1-4 are in a Gist
  • Which Gist is associated with which range of lines in which file

We could start out storing data in a JSON file. Need to determine a structure for this file to store all the data we need. Could use a SQLite database later if our data gets unwieldy in a simple JSON file.

Need to figure out where to save this file, where a Sublime Text plugin has access to read/write on a user's machine. Will differ between OS X and Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant