{"action":"created","issue":{"url":"https://api.github.com/repos/perak/kitchen-site/issues/120","labels_url":"https://api.github.com/repos/perak/kitchen-site/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/perak/kitchen-site/issues/120/comments","events_url":"https://api.github.com/repos/perak/kitchen-site/issues/120/events","html_url":"https://github.com/perak/kitchen-site/issues/120","id":98500651,"number":120,"title":"Custom_Components","user":{"login":"truck0321","id":5367090,"avatar_url":"https://avatars.githubusercontent.com/u/5367090?v=3","gravatar_id":"","url":"https://api.github.com/users/truck0321","html_url":"https://github.com/truck0321","followers_url":"https://api.github.com/users/truck0321/followers","following_url":"https://api.github.com/users/truck0321/following{/other_user}","gists_url":"https://api.github.com/users/truck0321/gists{/gist_id}","starred_url":"https://api.github.com/users/truck0321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truck0321/subscriptions","organizations_url":"https://api.github.com/users/truck0321/orgs","repos_url":"https://api.github.com/users/truck0321/repos","events_url":"https://api.github.com/users/truck0321/events{/privacy}","received_events_url":"https://api.github.com/users/truck0321/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-01T02:45:45Z","updated_at":"2015-08-03T17:22:35Z","closed_at":null,"body":"I was attempting to create a custom_component for a simple chat feature.   I have code in the javascript section that should only be run server side, not on the client.  All of the javascript ends up in the /Client folder so the server side javascript never executes.  Where is the best place to put that code?  In the API,  there is a place for server startup code but I don't see a way to specify javascript that should only be run on the server.  It would also be ideal to package that with the custom_component,  maybe a server side javascript and client javascript area in custom_components?  \r\n"},"comment":{"url":"https://api.github.com/repos/perak/kitchen-site/issues/comments/127336544","html_url":"https://github.com/perak/kitchen-site/issues/120#issuecomment-127336544","issue_url":"https://api.github.com/repos/perak/kitchen-site/issues/120","id":127336544,"user":{"login":"truck0321","id":5367090,"avatar_url":"https://avatars.githubusercontent.com/u/5367090?v=3","gravatar_id":"","url":"https://api.github.com/users/truck0321","html_url":"https://github.com/truck0321","followers_url":"https://api.github.com/users/truck0321/followers","following_url":"https://api.github.com/users/truck0321/following{/other_user}","gists_url":"https://api.github.com/users/truck0321/gists{/gist_id}","starred_url":"https://api.github.com/users/truck0321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truck0321/subscriptions","organizations_url":"https://api.github.com/users/truck0321/orgs","repos_url":"https://api.github.com/users/truck0321/repos","events_url":"https://api.github.com/users/truck0321/events{/privacy}","received_events_url":"https://api.github.com/users/truck0321/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T17:22:34Z","updated_at":"2015-08-03T17:22:34Z","body":"That makes sense and dropping my server side code in the server_startup_code worked perfectly.  Thank you!"}}