{"action":"created","issue":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/219","labels_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/219/comments","events_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/219/events","html_url":"https://github.com/bhauman/lein-figwheel/issues/219","id":102460463,"number":219,"title":"Isomorphic Figwheel?","user":{"login":"jcw","id":148955,"avatar_url":"https://avatars.githubusercontent.com/u/148955?v=3","gravatar_id":"","url":"https://api.github.com/users/jcw","html_url":"https://github.com/jcw","followers_url":"https://api.github.com/users/jcw/followers","following_url":"https://api.github.com/users/jcw/following{/other_user}","gists_url":"https://api.github.com/users/jcw/gists{/gist_id}","starred_url":"https://api.github.com/users/jcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcw/subscriptions","organizations_url":"https://api.github.com/users/jcw/orgs","repos_url":"https://api.github.com/users/jcw/repos","events_url":"https://api.github.com/users/jcw/events{/privacy}","received_events_url":"https://api.github.com/users/jcw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-21T20:53:27Z","updated_at":"2015-08-21T22:20:47Z","closed_at":null,"body":"It's probably a confusing term to use for this scenario, but is it possible to set up FW so it gets used for _simultaneous_ development in CLJS on both the server and the browser, i.e. two REPLs?\r\n\r\nI'm looking for a reasonably robust and practical development workflow, mostly for a single Mac laptop setup, but possibly also with the server side running on a Raspberry Pi.\r\n\r\nAs far as I can tell, this will need four processes running:\r\n* lein figwheel (i.e. jvm) for the server (based on malyn/figwheel-node-template)\r\n* nodejs (i.e. v8) running the actual server code, i.e. as http + app server for browsers\r\n* lein figwheel (a 2nd jvm) for client auto compiles and REPL\r\n* a browser, such as Google Chrome or Safari (v8 or webkit)\r\n\r\nHas anyone tried this? Any pointers?\r\nCould this be simplified further, perhaps even to a single switchable REPL?"},"comment":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/comments/133578663","html_url":"https://github.com/bhauman/lein-figwheel/issues/219#issuecomment-133578663","issue_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/219","id":133578663,"user":{"login":"jcw","id":148955,"avatar_url":"https://avatars.githubusercontent.com/u/148955?v=3","gravatar_id":"","url":"https://api.github.com/users/jcw","html_url":"https://github.com/jcw","followers_url":"https://api.github.com/users/jcw/followers","following_url":"https://api.github.com/users/jcw/following{/other_user}","gists_url":"https://api.github.com/users/jcw/gists{/gist_id}","starred_url":"https://api.github.com/users/jcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcw/subscriptions","organizations_url":"https://api.github.com/users/jcw/orgs","repos_url":"https://api.github.com/users/jcw/repos","events_url":"https://api.github.com/users/jcw/events{/privacy}","received_events_url":"https://api.github.com/users/jcw/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T22:20:47Z","updated_at":"2015-08-21T22:20:47Z","body":"Aha! Thanks, I missed that - still in total noob mode. Does this mean I can start a single lein figwheel, and use \"(switch-to-build id ...)\" to direct it to either node.js or the browser? I'm not running these from the same area, was planning to make each a separate project with their own project.clj files.\r\n\r\nHm, wait, I think you've got it set up with a common project and then server and browser in different subdirs? Having a hard time wrapping my head around this, I'm afraid. With node as server, it needs to hot reload, but also serve application code & assets to the brower, which in turn also hot reloads?\r\n\r\nI'll try out the various example modes, thx."}}