{"action":"created","issue":{"url":"https://api.github.com/repos/kosmtik/kosmtik/issues/137","repository_url":"https://api.github.com/repos/kosmtik/kosmtik","labels_url":"https://api.github.com/repos/kosmtik/kosmtik/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/kosmtik/kosmtik/issues/137/comments","events_url":"https://api.github.com/repos/kosmtik/kosmtik/issues/137/events","html_url":"https://github.com/kosmtik/kosmtik/pull/137","id":154978661,"number":137,"title":"[WIP] Add a home page","user":{"login":"yohanboniface","id":146023,"avatar_url":"https://avatars.githubusercontent.com/u/146023?v=3","gravatar_id":"","url":"https://api.github.com/users/yohanboniface","html_url":"https://github.com/yohanboniface","followers_url":"https://api.github.com/users/yohanboniface/followers","following_url":"https://api.github.com/users/yohanboniface/following{/other_user}","gists_url":"https://api.github.com/users/yohanboniface/gists{/gist_id}","starred_url":"https://api.github.com/users/yohanboniface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohanboniface/subscriptions","organizations_url":"https://api.github.com/users/yohanboniface/orgs","repos_url":"https://api.github.com/users/yohanboniface/repos","events_url":"https://api.github.com/users/yohanboniface/events{/privacy}","received_events_url":"https://api.github.com/users/yohanboniface/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-16T07:51:27Z","updated_at":"2016-05-17T15:45:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kosmtik/kosmtik/pulls/137","html_url":"https://github.com/kosmtik/kosmtik/pull/137","diff_url":"https://github.com/kosmtik/kosmtik/pull/137.diff","patch_url":"https://github.com/kosmtik/kosmtik/pull/137.patch"},"body":"Work in progress, but should be reviewable if someone wants to step in.\r\n\r\nThe main idea is to have a home page on kosmtik, that would in a first step display all the known projects, but can host any other information we could find useful, and any plugin can plug into the home to add its info. For example, we were talking during the week-end about a kosmtik-example plugin that would list in the home page all the kown CartoCSS project that kosmtik can read (maybe starting by the one that does not need installation/configuration, but not only).\r\n\r\nWhat this PR adds:\r\n- [x] when we start kosmtik serving a project, this project is added to the local settings, so Kosmtik knows about it\r\n- [x] the \"/\" URL no more redirects to the \"default project\" (i.e. the one given as parameter)\r\n- [x] it's now possible to run `node index.js serve` without specifying a project (but only known projects will be visible on the home page, and thus accessible)\r\n- [x] all the known projects are displayed on the home page\r\n- [x] when a project is loaded, we generate a thumb, so we can display it on the home page\r\n\r\nNice things to add before merging:\r\n- [ ] allow to run \"node index.js\", so `serve` becomes the default action\r\n- [ ] allow to load a new project from the home page; issue here is that, for security reasons, using the OS filebrowser only give us access to the pointed file (it's content and name), but not it's local path, which is what kosmtik needs; solution is certainly to have our own simple filebrowser (like Tilemill had, iirc); switching to an electron based project is maybe another option, but more ambitious"},"comment":{"url":"https://api.github.com/repos/kosmtik/kosmtik/issues/comments/219760514","html_url":"https://github.com/kosmtik/kosmtik/pull/137#issuecomment-219760514","issue_url":"https://api.github.com/repos/kosmtik/kosmtik/issues/137","id":219760514,"user":{"login":"brunob","id":418064,"avatar_url":"https://avatars.githubusercontent.com/u/418064?v=3","gravatar_id":"","url":"https://api.github.com/users/brunob","html_url":"https://github.com/brunob","followers_url":"https://api.github.com/users/brunob/followers","following_url":"https://api.github.com/users/brunob/following{/other_user}","gists_url":"https://api.github.com/users/brunob/gists{/gist_id}","starred_url":"https://api.github.com/users/brunob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunob/subscriptions","organizations_url":"https://api.github.com/users/brunob/orgs","repos_url":"https://api.github.com/users/brunob/repos","events_url":"https://api.github.com/users/brunob/events{/privacy}","received_events_url":"https://api.github.com/users/brunob/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T15:45:04Z","updated_at":"2016-05-17T15:45:04Z","body":"great, this one close #139 :)"}}