{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/audisto/data-downloader/pulls/10","id":186750969,"html_url":"https://github.com/audisto/data-downloader/pull/10","diff_url":"https://github.com/audisto/data-downloader/pull/10.diff","patch_url":"https://github.com/audisto/data-downloader/pull/10.patch","issue_url":"https://api.github.com/repos/audisto/data-downloader/issues/10","number":10,"state":"open","locked":false,"title":"[WIP] web interface introduction (and a fix for colors on Windows, closes #9)","user":{"login":"01walid","id":983020,"avatar_url":"https://avatars1.githubusercontent.com/u/983020?v=4","gravatar_id":"","url":"https://api.github.com/users/01walid","html_url":"https://github.com/01walid","followers_url":"https://api.github.com/users/01walid/followers","following_url":"https://api.github.com/users/01walid/following{/other_user}","gists_url":"https://api.github.com/users/01walid/gists{/gist_id}","starred_url":"https://api.github.com/users/01walid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01walid/subscriptions","organizations_url":"https://api.github.com/users/01walid/orgs","repos_url":"https://api.github.com/users/01walid/repos","events_url":"https://api.github.com/users/01walid/events{/privacy}","received_events_url":"https://api.github.com/users/01walid/received_events","type":"User","site_admin":false},"body":"This PR introduces the local web interface available at: `audisto-cli web`, there's also a rename of the tool from `data-downloader` to `audisto-cli` in the `Makefile` builds. \r\n\r\nAll assets used for the web interface are embedded inside the final binary itself (using statik: https://github.com/rakyll/statik). Static files are turned into base64 go code under `web/statik/statik.go`, and this can be triggered with the built-in `go generate` tool (included in the Makefile). End users will still enjoy one binary, dependency-free executable file for audisto-cli for all of the 03 platforms (no need to associate javascript, css, html files).\r\n\r\nThe web interface uses [bulma.io](https://bulma.io/) for the css (a lightweight css framework). [gin](https://github.com/gin-gonic/gin) for the http/rest interface, and [Melody](https://github.com/olahol/melody) for websockets.\r\n\r\nNo changes to the build/release commands, all should work as expected using `make build` and `make release`, the tool can be install to `$GOPATH/bin` with `make install` as well. But before, ensure all the dev dependencies are satisfied, this can be achieved with `make ensure-dependency`.\r\n\r\nThis also fixes colors on Windows (unfortunately not as well supported as in POSIX based shells) colors are disabled in realtime refreshes (when rendering the progress bar) in Windows, otherwise, outputs will be colored.\r\n\r\nAnother notable changes in this PR is a small adjustment to the project layout, following golang project structure recommendations [1]\r\n\r\nOther additions: \r\n- Golang 1.10 support in Travis (by the way, travis is still not enabled in this main repository)\r\n- Fontawesome 5 for the web UI icons\r\n- `.air.conf` for live reloads for the local web interface development, just install [air](https://github.com/cosmtrek/air) then `cd` into the project's root directory and type `air`. \r\n\r\nI'm still finalizing the web interface, almost there. I'll update this PR in these couple of days with the final result. Feel free to pull and give feedbacks. There will be also:\r\n- README.md updates\r\n- Tests.\r\n\r\n[1] golang project structure conventions:\r\n- https://github.com/golang-standards/project-layout\r\n- https://flaviocopes.com/go-filesystem-structure/\r\n- https://medium.com/golang-learn/go-project-layout-e5213cdcfaa2","created_at":"2018-05-08T20:45:21Z","updated_at":"2018-05-08T20:45:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/audisto/data-downloader/pulls/10/commits","review_comments_url":"https://api.github.com/repos/audisto/data-downloader/pulls/10/comments","review_comment_url":"https://api.github.com/repos/audisto/data-downloader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/audisto/data-downloader/issues/10/comments","statuses_url":"https://api.github.com/repos/audisto/data-downloader/statuses/bf261300cac7e487942642251703b26a180c1311","head":{"label":"01walid:master","ref":"master","sha":"bf261300cac7e487942642251703b26a180c1311","user":{"login":"01walid","id":983020,"avatar_url":"https://avatars1.githubusercontent.com/u/983020?v=4","gravatar_id":"","url":"https://api.github.com/users/01walid","html_url":"https://github.com/01walid","followers_url":"https://api.github.com/users/01walid/followers","following_url":"https://api.github.com/users/01walid/following{/other_user}","gists_url":"https://api.github.com/users/01walid/gists{/gist_id}","starred_url":"https://api.github.com/users/01walid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01walid/subscriptions","organizations_url":"https://api.github.com/users/01walid/orgs","repos_url":"https://api.github.com/users/01walid/repos","events_url":"https://api.github.com/users/01walid/events{/privacy}","received_events_url":"https://api.github.com/users/01walid/received_events","type":"User","site_admin":false},"repo":{"id":104880529,"name":"data-downloader","full_name":"01walid/data-downloader","owner":{"login":"01walid","id":983020,"avatar_url":"https://avatars1.githubusercontent.com/u/983020?v=4","gravatar_id":"","url":"https://api.github.com/users/01walid","html_url":"https://github.com/01walid","followers_url":"https://api.github.com/users/01walid/followers","following_url":"https://api.github.com/users/01walid/following{/other_user}","gists_url":"https://api.github.com/users/01walid/gists{/gist_id}","starred_url":"https://api.github.com/users/01walid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01walid/subscriptions","organizations_url":"https://api.github.com/users/01walid/orgs","repos_url":"https://api.github.com/users/01walid/repos","events_url":"https://api.github.com/users/01walid/events{/privacy}","received_events_url":"https://api.github.com/users/01walid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/01walid/data-downloader","description":"Command line tool for easy data downloads using the audisto API.","fork":true,"url":"https://api.github.com/repos/01walid/data-downloader","forks_url":"https://api.github.com/repos/01walid/data-downloader/forks","keys_url":"https://api.github.com/repos/01walid/data-downloader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/01walid/data-downloader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/01walid/data-downloader/teams","hooks_url":"https://api.github.com/repos/01walid/data-downloader/hooks","issue_events_url":"https://api.github.com/repos/01walid/data-downloader/issues/events{/number}","events_url":"https://api.github.com/repos/01walid/data-downloader/events","assignees_url":"https://api.github.com/repos/01walid/data-downloader/assignees{/user}","branches_url":"https://api.github.com/repos/01walid/data-downloader/branches{/branch}","tags_url":"https://api.github.com/repos/01walid/data-downloader/tags","blobs_url":"https://api.github.com/repos/01walid/data-downloader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/01walid/data-downloader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/01walid/data-downloader/git/refs{/sha}","trees_url":"https://api.github.com/repos/01walid/data-downloader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/01walid/data-downloader/statuses/{sha}","languages_url":"https://api.github.com/repos/01walid/data-downloader/languages","stargazers_url":"https://api.github.com/repos/01walid/data-downloader/stargazers","contributors_url":"https://api.github.com/repos/01walid/data-downloader/contributors","subscribers_url":"https://api.github.com/repos/01walid/data-downloader/subscribers","subscription_url":"https://api.github.com/repos/01walid/data-downloader/subscription","commits_url":"https://api.github.com/repos/01walid/data-downloader/commits{/sha}","git_commits_url":"https://api.github.com/repos/01walid/data-downloader/git/commits{/sha}","comments_url":"https://api.github.com/repos/01walid/data-downloader/comments{/number}","issue_comment_url":"https://api.github.com/repos/01walid/data-downloader/issues/comments{/number}","contents_url":"https://api.github.com/repos/01walid/data-downloader/contents/{+path}","compare_url":"https://api.github.com/repos/01walid/data-downloader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/01walid/data-downloader/merges","archive_url":"https://api.github.com/repos/01walid/data-downloader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/01walid/data-downloader/downloads","issues_url":"https://api.github.com/repos/01walid/data-downloader/issues{/number}","pulls_url":"https://api.github.com/repos/01walid/data-downloader/pulls{/number}","milestones_url":"https://api.github.com/repos/01walid/data-downloader/milestones{/number}","notifications_url":"https://api.github.com/repos/01walid/data-downloader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/01walid/data-downloader/labels{/name}","releases_url":"https://api.github.com/repos/01walid/data-downloader/releases{/id}","deployments_url":"https://api.github.com/repos/01walid/data-downloader/deployments","created_at":"2017-09-26T12:16:02Z","updated_at":"2018-05-08T20:11:50Z","pushed_at":"2018-05-08T20:11:48Z","git_url":"git://github.com/01walid/data-downloader.git","ssh_url":"git@github.com:01walid/data-downloader.git","clone_url":"https://github.com/01walid/data-downloader.git","svn_url":"https://github.com/01walid/data-downloader","homepage":null,"size":12234,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"audisto:master","ref":"master","sha":"e6d439c2621be94a1a988df24735e87fac0b8d41","user":{"login":"audisto","id":20965646,"avatar_url":"https://avatars3.githubusercontent.com/u/20965646?v=4","gravatar_id":"","url":"https://api.github.com/users/audisto","html_url":"https://github.com/audisto","followers_url":"https://api.github.com/users/audisto/followers","following_url":"https://api.github.com/users/audisto/following{/other_user}","gists_url":"https://api.github.com/users/audisto/gists{/gist_id}","starred_url":"https://api.github.com/users/audisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audisto/subscriptions","organizations_url":"https://api.github.com/users/audisto/orgs","repos_url":"https://api.github.com/users/audisto/repos","events_url":"https://api.github.com/users/audisto/events{/privacy}","received_events_url":"https://api.github.com/users/audisto/received_events","type":"Organization","site_admin":false},"repo":{"id":65450751,"name":"data-downloader","full_name":"audisto/data-downloader","owner":{"login":"audisto","id":20965646,"avatar_url":"https://avatars3.githubusercontent.com/u/20965646?v=4","gravatar_id":"","url":"https://api.github.com/users/audisto","html_url":"https://github.com/audisto","followers_url":"https://api.github.com/users/audisto/followers","following_url":"https://api.github.com/users/audisto/following{/other_user}","gists_url":"https://api.github.com/users/audisto/gists{/gist_id}","starred_url":"https://api.github.com/users/audisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audisto/subscriptions","organizations_url":"https://api.github.com/users/audisto/orgs","repos_url":"https://api.github.com/users/audisto/repos","events_url":"https://api.github.com/users/audisto/events{/privacy}","received_events_url":"https://api.github.com/users/audisto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/audisto/data-downloader","description":"Command line tool for easy data downloads using the audisto API.","fork":false,"url":"https://api.github.com/repos/audisto/data-downloader","forks_url":"https://api.github.com/repos/audisto/data-downloader/forks","keys_url":"https://api.github.com/repos/audisto/data-downloader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/audisto/data-downloader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/audisto/data-downloader/teams","hooks_url":"https://api.github.com/repos/audisto/data-downloader/hooks","issue_events_url":"https://api.github.com/repos/audisto/data-downloader/issues/events{/number}","events_url":"https://api.github.com/repos/audisto/data-downloader/events","assignees_url":"https://api.github.com/repos/audisto/data-downloader/assignees{/user}","branches_url":"https://api.github.com/repos/audisto/data-downloader/branches{/branch}","tags_url":"https://api.github.com/repos/audisto/data-downloader/tags","blobs_url":"https://api.github.com/repos/audisto/data-downloader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/audisto/data-downloader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/audisto/data-downloader/git/refs{/sha}","trees_url":"https://api.github.com/repos/audisto/data-downloader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/audisto/data-downloader/statuses/{sha}","languages_url":"https://api.github.com/repos/audisto/data-downloader/languages","stargazers_url":"https://api.github.com/repos/audisto/data-downloader/stargazers","contributors_url":"https://api.github.com/repos/audisto/data-downloader/contributors","subscribers_url":"https://api.github.com/repos/audisto/data-downloader/subscribers","subscription_url":"https://api.github.com/repos/audisto/data-downloader/subscription","commits_url":"https://api.github.com/repos/audisto/data-downloader/commits{/sha}","git_commits_url":"https://api.github.com/repos/audisto/data-downloader/git/commits{/sha}","comments_url":"https://api.github.com/repos/audisto/data-downloader/comments{/number}","issue_comment_url":"https://api.github.com/repos/audisto/data-downloader/issues/comments{/number}","contents_url":"https://api.github.com/repos/audisto/data-downloader/contents/{+path}","compare_url":"https://api.github.com/repos/audisto/data-downloader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/audisto/data-downloader/merges","archive_url":"https://api.github.com/repos/audisto/data-downloader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/audisto/data-downloader/downloads","issues_url":"https://api.github.com/repos/audisto/data-downloader/issues{/number}","pulls_url":"https://api.github.com/repos/audisto/data-downloader/pulls{/number}","milestones_url":"https://api.github.com/repos/audisto/data-downloader/milestones{/number}","notifications_url":"https://api.github.com/repos/audisto/data-downloader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/audisto/data-downloader/labels{/name}","releases_url":"https://api.github.com/repos/audisto/data-downloader/releases{/id}","deployments_url":"https://api.github.com/repos/audisto/data-downloader/deployments","created_at":"2016-08-11T08:04:21Z","updated_at":"2017-09-25T15:43:02Z","pushed_at":"2018-02-01T14:23:02Z","git_url":"git://github.com/audisto/data-downloader.git","ssh_url":"git@github.com:audisto/data-downloader.git","clone_url":"https://github.com/audisto/data-downloader.git","svn_url":"https://github.com/audisto/data-downloader","homepage":null,"size":10211,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/audisto/data-downloader/pulls/10"},"html":{"href":"https://github.com/audisto/data-downloader/pull/10"},"issue":{"href":"https://api.github.com/repos/audisto/data-downloader/issues/10"},"comments":{"href":"https://api.github.com/repos/audisto/data-downloader/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/audisto/data-downloader/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/audisto/data-downloader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/audisto/data-downloader/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/audisto/data-downloader/statuses/bf261300cac7e487942642251703b26a180c1311"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":22,"additions":3828,"deletions":155,"changed_files":51}}
{"actor":{"display_login":"01walid"}}