{"action":"created","issue":{"url":"https://api.github.com/repos/hollowverse/hollowverse/issues/320","repository_url":"https://api.github.com/repos/hollowverse/hollowverse","labels_url":"https://api.github.com/repos/hollowverse/hollowverse/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/hollowverse/hollowverse/issues/320/comments","events_url":"https://api.github.com/repos/hollowverse/hollowverse/issues/320/events","html_url":"https://github.com/hollowverse/hollowverse/issues/320","id":299980661,"number":320,"title":"Fix and improve development setup","user":{"login":"wholesomedev","id":26730388,"avatar_url":"https://avatars1.githubusercontent.com/u/26730388?v=4","gravatar_id":"","url":"https://api.github.com/users/wholesomedev","html_url":"https://github.com/wholesomedev","followers_url":"https://api.github.com/users/wholesomedev/followers","following_url":"https://api.github.com/users/wholesomedev/following{/other_user}","gists_url":"https://api.github.com/users/wholesomedev/gists{/gist_id}","starred_url":"https://api.github.com/users/wholesomedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wholesomedev/subscriptions","organizations_url":"https://api.github.com/users/wholesomedev/orgs","repos_url":"https://api.github.com/users/wholesomedev/repos","events_url":"https://api.github.com/users/wholesomedev/events{/privacy}","received_events_url":"https://api.github.com/users/wholesomedev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-24T23:06:30Z","updated_at":"2018-02-24T23:30:23Z","closed_at":null,"author_association":"NONE","body":"So having some time to kill I thought I'd take a stab at recombining the NP page code, so I went through the [development workflow](https://github.com/hollowverse/hollowverse/wiki/Web-App-Development). \r\n\r\nI used \r\n\r\n```\r\ndocker-compose up --build\r\n```\r\n\r\nand a bunch of text started scrolling up my terminal. At the end of it, I saw \r\n\r\n```\r\nweb_app_1  | [remotedev            ] --------------------------------------------------------------------------------\r\nweb_app_1  | [remotedev            ]\r\nweb_app_1  | [remotedev            ]    [Busy] Launching SocketCluster\r\nweb_app_1  | [remotedev            ]    [Active] SocketCluster started\r\nweb_app_1  | [remotedev            ]             Version: 6.8.0\r\nweb_app_1  | [remotedev            ]             Environment: dev\r\nweb_app_1  | [remotedev            ]             WebSocket engine: uws\r\nweb_app_1  | [remotedev            ]             Port: 8000\r\nweb_app_1  | [remotedev            ]             Master PID: 1545\r\nweb_app_1  | [remotedev            ]             Worker count: 1\r\nweb_app_1  | [remotedev            ]             Broker count: 1\r\nweb_app_1  | [remotedev            ]\r\nweb_app_1  | [app/graphql/dev      ] $ export API_ENDPOINT=${API_ENDPOINT:-https://api.hollowverse.com/graphql}; apollo-codegen introspect-schema ${API_ENDPOINT} --output ./graphqlSchema.json\r\nweb_app_1  | [app/graphql/dev      ] $ apollo-codegen generate 'src/app/**/*.{graphql,gql}' --target typescript --output src/app/api/types.ts\r\nweb_app_1  | [server/app-server/dev] Starting webpack compilation...\r\nweb_app_1  | [server/app-server/dev] [HPM] Proxy created: /  ->  https://api.hollowverse.com/graphql\r\nweb_app_1  | [server/app-server/dev] webpack built 819556f48bd66cf9e816 in 42534ms\r\nweb_app_1  | [server/app-server/dev]\r\nweb_app_1  | [server/app-server/dev] webpack: Compiled successfully.\r\nweb_app_1  | [server/app-server/dev] App server is listening on port 3001\r\n```\r\n\r\nI thought good, now I can load the app at `http://localhost:3001`, but unfortunately nothing turned up there. I got\r\n\r\n![image](https://user-images.githubusercontent.com/26730388/36636022-d56773d4-1972-11e8-9d75-8f7df8c668d3.png)\r\n\r\nSo I tried\r\n\r\n```\r\nyarn start\r\n```\r\n\r\nbut that complained that `dist/mainServer.js` is missing, so I figured this command is probably for starting the deployed application. So I tried\r\n\r\n```\r\nyarn dev\r\n```\r\n\r\nWith `yarn dev`, things seemed to work. I loaded `http://localhost:3001`. At least now I was getting:\r\n\r\n```\r\nError: ENOENT: no such file or directory, open '/some/path/hollowverse/secrets/sumo.json'\r\n```\r\n\r\nSo I added a dummy `sumo.json` file with `{}` as content to the path where it was expected, and restarted the server and loaded `http://localhost:3001` again. This time I got\r\n\r\n```\r\nCannot GET /\r\n```\r\n\r\nFinally, I tried `http://localhost:3001/Ray_J` and got a page to load 🎉\r\n\r\nWe should try to streamline development setup for a new machine."},"comment":{"url":"https://api.github.com/repos/hollowverse/hollowverse/issues/comments/368268785","html_url":"https://github.com/hollowverse/hollowverse/issues/320#issuecomment-368268785","issue_url":"https://api.github.com/repos/hollowverse/hollowverse/issues/320","id":368268785,"user":{"login":"forabi","id":1012761,"avatar_url":"https://avatars2.githubusercontent.com/u/1012761?v=4","gravatar_id":"","url":"https://api.github.com/users/forabi","html_url":"https://github.com/forabi","followers_url":"https://api.github.com/users/forabi/followers","following_url":"https://api.github.com/users/forabi/following{/other_user}","gists_url":"https://api.github.com/users/forabi/gists{/gist_id}","starred_url":"https://api.github.com/users/forabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forabi/subscriptions","organizations_url":"https://api.github.com/users/forabi/orgs","repos_url":"https://api.github.com/users/forabi/repos","events_url":"https://api.github.com/users/forabi/events{/privacy}","received_events_url":"https://api.github.com/users/forabi/received_events","type":"User","site_admin":false},"created_at":"2018-02-24T23:30:23Z","updated_at":"2018-02-24T23:30:23Z","author_association":"CONTRIBUTOR","body":"A better approach might be to relax some of TypeScript options in development, like `noImplicitAny`, `noUnusedLocals`... etc."}}
{"actor":{"display_login":"forabi"}}