Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sielay/git-flow-db
Storage of documents in database using git-a-like flow and versioning. Now on top of mongoDB
https://github.com/sielay/git-flow-db
Last synced: 2 days ago
JSON representation
Storage of documents in database using git-a-like flow and versioning. Now on top of mongoDB
- Host: GitHub
- URL: https://github.com/sielay/git-flow-db
- Owner: sielay
- Created: 2015-09-24T07:11:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-07T17:23:59.000Z (about 9 years ago)
- Last Synced: 2024-12-06T18:35:16.694Z (17 days ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-flow-db
Allows to store file versions using git-a-like-flow in database. So you can combine git way of thinking and mongodb replication. I needed that for configuration in one of my projects.
## Idea
* It's file centric (doesn't have tree)
* Git SHA1 are skipped as overkill here, MongoIDs are reliable enough
* Repo/File information is stored in `__git_flow_repos`
* Objects are stored in `__git_flow_objects` as raw versions
* Index is stored in `__git_flow_index`
* As in git you have one current head per repo## Install
```
npm install --save git-flow-db
```## Index
```
{
"org" : "organisation",
"doc" : "file",
"version" : "979ffd132438c2313b1c51317d57d84c432553c8",
"branch" : "master",
"parent" : "517b101d97ed94afa87beb0bdeb357fb38af8ec1",
"merge" : "fd996410cb9163cc01aee107e4d4320d189a5c7d",
"committer" : "lukasz",
"date" : "2012-04-23T18:25:43.511Z",
"message" : "Merged",
"org": 32
}
```## Next steps
* Fork/Merge
* Current head in `__git_flow_index` to allow search### Contribute
Fork -> Dev -> Test (CC >= 98.52%) -> Commit -> Pull Request -> Repeat
## License
MIT - because it's fun to share