{"action":"created","comment":{"url":"https://api.github.com/repos/anthill/6element/pulls/comments/47222485","id":47222485,"diff_hunk":"@@ -18,11 +18,15 @@ Install:\n npm install\n ````\n \n+#### Initialize the database\n+\n Put your datafiles in `data`, then do:\n \n ```\n-docker-compose -f docker-compose-init-db.yml rm -f\n-docker-compose -f docker-compose-init-db.yml up\n+npm run serve-dev # or npm run serve-prod in production environment\n+\n+# then in another window\n+docker exec 6element_backup_1 tools/init-database.js\n docker-compose -f docker-compose-load-db.yml up\n ```","path":"README.md","position":16,"original_position":16,"commit_id":"f85fbe75fa2f00806490a942ce5d6b7e92669293","original_commit_id":"7abb9b4d99d309fd289383668d62c5989093705c","user":{"login":"DavidBruant","id":165829,"avatar_url":"https://avatars.githubusercontent.com/u/165829?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBruant","html_url":"https://github.com/DavidBruant","followers_url":"https://api.github.com/users/DavidBruant/followers","following_url":"https://api.github.com/users/DavidBruant/following{/other_user}","gists_url":"https://api.github.com/users/DavidBruant/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBruant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBruant/subscriptions","organizations_url":"https://api.github.com/users/DavidBruant/orgs","repos_url":"https://api.github.com/users/DavidBruant/repos","events_url":"https://api.github.com/users/DavidBruant/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBruant/received_events","type":"User","site_admin":false},"body":"This step should eventually disappear since it's about transfering a JSON file to the database. Eventually, the data will just be in the database with ways to make incremental changes.","created_at":"2015-12-10T12:57:09Z","updated_at":"2015-12-10T12:57:09Z","html_url":"https://github.com/anthill/6element/pull/153#discussion_r47222485","pull_request_url":"https://api.github.com/repos/anthill/6element/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/anthill/6element/pulls/comments/47222485"},"html":{"href":"https://github.com/anthill/6element/pull/153#discussion_r47222485"},"pull_request":{"href":"https://api.github.com/repos/anthill/6element/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/anthill/6element/pulls/153","id":53237379,"html_url":"https://github.com/anthill/6element/pull/153","diff_url":"https://github.com/anthill/6element/pull/153.diff","patch_url":"https://github.com/anthill/6element/pull/153.patch","issue_url":"https://api.github.com/repos/anthill/6element/issues/153","number":153,"state":"open","locked":false,"title":"[DO NOT MERGE] Add a bunch of tools to backup/restore/init-db + dedicated docker service","user":{"login":"DavidBruant","id":165829,"avatar_url":"https://avatars.githubusercontent.com/u/165829?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBruant","html_url":"https://github.com/DavidBruant","followers_url":"https://api.github.com/users/DavidBruant/followers","following_url":"https://api.github.com/users/DavidBruant/following{/other_user}","gists_url":"https://api.github.com/users/DavidBruant/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBruant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBruant/subscriptions","organizations_url":"https://api.github.com/users/DavidBruant/orgs","repos_url":"https://api.github.com/users/DavidBruant/repos","events_url":"https://api.github.com/users/DavidBruant/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBruant/received_events","type":"User","site_admin":false},"body":"But please review.\r\nThis implements https://github.com/anthill/6element/issues/107#issuecomment-162887719\r\nSee Readme first.\r\n\r\nThis is only the dev part of the tooling. Adding the prod counter-part right now.","created_at":"2015-12-10T10:04:53Z","updated_at":"2015-12-10T12:57:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/anthill/6element/pulls/153/commits","review_comments_url":"https://api.github.com/repos/anthill/6element/pulls/153/comments","review_comment_url":"https://api.github.com/repos/anthill/6element/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anthill/6element/issues/153/comments","statuses_url":"https://api.github.com/repos/anthill/6element/statuses/f85fbe75fa2f00806490a942ce5d6b7e92669293","head":{"label":"DavidBruant:backups","ref":"backups","sha":"f85fbe75fa2f00806490a942ce5d6b7e92669293","user":{"login":"DavidBruant","id":165829,"avatar_url":"https://avatars.githubusercontent.com/u/165829?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBruant","html_url":"https://github.com/DavidBruant","followers_url":"https://api.github.com/users/DavidBruant/followers","following_url":"https://api.github.com/users/DavidBruant/following{/other_user}","gists_url":"https://api.github.com/users/DavidBruant/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBruant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBruant/subscriptions","organizations_url":"https://api.github.com/users/DavidBruant/orgs","repos_url":"https://api.github.com/users/DavidBruant/repos","events_url":"https://api.github.com/users/DavidBruant/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBruant/received_events","type":"User","site_admin":false},"repo":{"id":35167901,"name":"6element","full_name":"DavidBruant/6element","owner":{"login":"DavidBruant","id":165829,"avatar_url":"https://avatars.githubusercontent.com/u/165829?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBruant","html_url":"https://github.com/DavidBruant","followers_url":"https://api.github.com/users/DavidBruant/followers","following_url":"https://api.github.com/users/DavidBruant/following{/other_user}","gists_url":"https://api.github.com/users/DavidBruant/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBruant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBruant/subscriptions","organizations_url":"https://api.github.com/users/DavidBruant/orgs","repos_url":"https://api.github.com/users/DavidBruant/repos","events_url":"https://api.github.com/users/DavidBruant/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBruant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DavidBruant/6element","description":"Optimising waste management in recycle centers.","fork":true,"url":"https://api.github.com/repos/DavidBruant/6element","forks_url":"https://api.github.com/repos/DavidBruant/6element/forks","keys_url":"https://api.github.com/repos/DavidBruant/6element/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DavidBruant/6element/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DavidBruant/6element/teams","hooks_url":"https://api.github.com/repos/DavidBruant/6element/hooks","issue_events_url":"https://api.github.com/repos/DavidBruant/6element/issues/events{/number}","events_url":"https://api.github.com/repos/DavidBruant/6element/events","assignees_url":"https://api.github.com/repos/DavidBruant/6element/assignees{/user}","branches_url":"https://api.github.com/repos/DavidBruant/6element/branches{/branch}","tags_url":"https://api.github.com/repos/DavidBruant/6element/tags","blobs_url":"https://api.github.com/repos/DavidBruant/6element/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DavidBruant/6element/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DavidBruant/6element/git/refs{/sha}","trees_url":"https://api.github.com/repos/DavidBruant/6element/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DavidBruant/6element/statuses/{sha}","languages_url":"https://api.github.com/repos/DavidBruant/6element/languages","stargazers_url":"https://api.github.com/repos/DavidBruant/6element/stargazers","contributors_url":"https://api.github.com/repos/DavidBruant/6element/contributors","subscribers_url":"https://api.github.com/repos/DavidBruant/6element/subscribers","subscription_url":"https://api.github.com/repos/DavidBruant/6element/subscription","commits_url":"https://api.github.com/repos/DavidBruant/6element/commits{/sha}","git_commits_url":"https://api.github.com/repos/DavidBruant/6element/git/commits{/sha}","comments_url":"https://api.github.com/repos/DavidBruant/6element/comments{/number}","issue_comment_url":"https://api.github.com/repos/DavidBruant/6element/issues/comments{/number}","contents_url":"https://api.github.com/repos/DavidBruant/6element/contents/{+path}","compare_url":"https://api.github.com/repos/DavidBruant/6element/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DavidBruant/6element/merges","archive_url":"https://api.github.com/repos/DavidBruant/6element/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DavidBruant/6element/downloads","issues_url":"https://api.github.com/repos/DavidBruant/6element/issues{/number}","pulls_url":"https://api.github.com/repos/DavidBruant/6element/pulls{/number}","milestones_url":"https://api.github.com/repos/DavidBruant/6element/milestones{/number}","notifications_url":"https://api.github.com/repos/DavidBruant/6element/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DavidBruant/6element/labels{/name}","releases_url":"https://api.github.com/repos/DavidBruant/6element/releases{/id}","created_at":"2015-05-06T15:44:32Z","updated_at":"2015-05-06T15:44:32Z","pushed_at":"2015-12-10T12:52:55Z","git_url":"git://github.com/DavidBruant/6element.git","ssh_url":"git@github.com:DavidBruant/6element.git","clone_url":"https://github.com/DavidBruant/6element.git","svn_url":"https://github.com/DavidBruant/6element","homepage":"http://anthill.github.io/6element/presentation/","size":17917,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"anthill:master","ref":"master","sha":"d2dc3c7d35c1785184806363ab794d27c7a3cb02","user":{"login":"anthill","id":7281593,"avatar_url":"https://avatars.githubusercontent.com/u/7281593?v=3","gravatar_id":"","url":"https://api.github.com/users/anthill","html_url":"https://github.com/anthill","followers_url":"https://api.github.com/users/anthill/followers","following_url":"https://api.github.com/users/anthill/following{/other_user}","gists_url":"https://api.github.com/users/anthill/gists{/gist_id}","starred_url":"https://api.github.com/users/anthill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthill/subscriptions","organizations_url":"https://api.github.com/users/anthill/orgs","repos_url":"https://api.github.com/users/anthill/repos","events_url":"https://api.github.com/users/anthill/events{/privacy}","received_events_url":"https://api.github.com/users/anthill/received_events","type":"Organization","site_admin":false},"repo":{"id":19114144,"name":"6element","full_name":"anthill/6element","owner":{"login":"anthill","id":7281593,"avatar_url":"https://avatars.githubusercontent.com/u/7281593?v=3","gravatar_id":"","url":"https://api.github.com/users/anthill","html_url":"https://github.com/anthill","followers_url":"https://api.github.com/users/anthill/followers","following_url":"https://api.github.com/users/anthill/following{/other_user}","gists_url":"https://api.github.com/users/anthill/gists{/gist_id}","starred_url":"https://api.github.com/users/anthill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthill/subscriptions","organizations_url":"https://api.github.com/users/anthill/orgs","repos_url":"https://api.github.com/users/anthill/repos","events_url":"https://api.github.com/users/anthill/events{/privacy}","received_events_url":"https://api.github.com/users/anthill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anthill/6element","description":"Optimising waste management in recycle centers.","fork":false,"url":"https://api.github.com/repos/anthill/6element","forks_url":"https://api.github.com/repos/anthill/6element/forks","keys_url":"https://api.github.com/repos/anthill/6element/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anthill/6element/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anthill/6element/teams","hooks_url":"https://api.github.com/repos/anthill/6element/hooks","issue_events_url":"https://api.github.com/repos/anthill/6element/issues/events{/number}","events_url":"https://api.github.com/repos/anthill/6element/events","assignees_url":"https://api.github.com/repos/anthill/6element/assignees{/user}","branches_url":"https://api.github.com/repos/anthill/6element/branches{/branch}","tags_url":"https://api.github.com/repos/anthill/6element/tags","blobs_url":"https://api.github.com/repos/anthill/6element/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anthill/6element/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anthill/6element/git/refs{/sha}","trees_url":"https://api.github.com/repos/anthill/6element/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anthill/6element/statuses/{sha}","languages_url":"https://api.github.com/repos/anthill/6element/languages","stargazers_url":"https://api.github.com/repos/anthill/6element/stargazers","contributors_url":"https://api.github.com/repos/anthill/6element/contributors","subscribers_url":"https://api.github.com/repos/anthill/6element/subscribers","subscription_url":"https://api.github.com/repos/anthill/6element/subscription","commits_url":"https://api.github.com/repos/anthill/6element/commits{/sha}","git_commits_url":"https://api.github.com/repos/anthill/6element/git/commits{/sha}","comments_url":"https://api.github.com/repos/anthill/6element/comments{/number}","issue_comment_url":"https://api.github.com/repos/anthill/6element/issues/comments{/number}","contents_url":"https://api.github.com/repos/anthill/6element/contents/{+path}","compare_url":"https://api.github.com/repos/anthill/6element/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anthill/6element/merges","archive_url":"https://api.github.com/repos/anthill/6element/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anthill/6element/downloads","issues_url":"https://api.github.com/repos/anthill/6element/issues{/number}","pulls_url":"https://api.github.com/repos/anthill/6element/pulls{/number}","milestones_url":"https://api.github.com/repos/anthill/6element/milestones{/number}","notifications_url":"https://api.github.com/repos/anthill/6element/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anthill/6element/labels{/name}","releases_url":"https://api.github.com/repos/anthill/6element/releases{/id}","created_at":"2014-04-24T15:43:21Z","updated_at":"2015-11-27T04:29:39Z","pushed_at":"2015-12-10T12:52:55Z","git_url":"git://github.com/anthill/6element.git","ssh_url":"git@github.com:anthill/6element.git","clone_url":"https://github.com/anthill/6element.git","svn_url":"https://github.com/anthill/6element","homepage":"http://ants.builders/pages/6element.html","size":18971,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":10,"forks":10,"open_issues":10,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anthill/6element/pulls/153"},"html":{"href":"https://github.com/anthill/6element/pull/153"},"issue":{"href":"https://api.github.com/repos/anthill/6element/issues/153"},"comments":{"href":"https://api.github.com/repos/anthill/6element/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/anthill/6element/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/anthill/6element/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anthill/6element/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/anthill/6element/statuses/f85fbe75fa2f00806490a942ce5d6b7e92669293"}}}}