feat(adapter): implement JSON file storage adapter for issue #9 #27
Reference in New Issue
Block a user
Delete Branch "fix/issue-9"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the JSON file storage adapter for issue #9.
Implements RoomStorage and TrackingStorage ports using JSON file persistence:
Features
Closes #9
lets add unit tests as well. I'd like to see if its possible to track the same bounty multiple times. if possible, should we handle the logic here or somewhere else?
@@ -0,0 +3,4 @@Implements RoomStorage and TrackingStorage ports using JSON file persistence.Data stored at:- Rooms: ~/.jigaido/data/<room_id>.json- Tracking: ~/.jigaido/tracking/<room_id>_<user_id>.jsoncan we store both of the data under data folder instead of separating them?
basically
rooms: ~/.jigaido/data/room/<room_id>.json
tracking: ~/.jigaido/data/tracking/<room_id>_<user_id>.json
this way we have both under rooms, and its easier to migrate as well
lgtm