{"__v":8,"_id":"566f67d34b47620d00f8b30e","category":{"__v":12,"_id":"562d247b26a0a10d00ad6be4","pages":["562d247c26a0a10d00ad6bf2","562d247c26a0a10d00ad6bf3","562d247c26a0a10d00ad6bf4","562d247c26a0a10d00ad6bf5","566f657d4b47620d00f8b308","566f678e84f4210d00c9fc27","566f67a084f4210d00c9fc29","566f67bb84f4210d00c9fc2b","566f67ca84f4210d00c9fc2d","566f67d34b47620d00f8b30e","566f682cfcaa550d00e05272","566f6835fa234a0d00119fef","566f7814fcaa550d00e05280","566f80fefa234a0d0011a001","566fa875f790870d00785852"],"project":"55ba86e68f4ef01900c0ae1f","version":"562d247a26a0a10d00ad6be2","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-30T22:17:47.565Z","from_sync":false,"order":1,"slug":"getting-started-with-autocode","title":"Getting Started with Autocode"},"project":"55ba86e68f4ef01900c0ae1f","user":"55ba86a810133e2b00feb6bc","version":{"__v":10,"_id":"562d247a26a0a10d00ad6be2","project":"55ba86e68f4ef01900c0ae1f","createdAt":"2015-10-25T18:50:34.678Z","releaseDate":"2015-10-25T18:50:34.678Z","categories":["562d247b26a0a10d00ad6be3","562d247b26a0a10d00ad6be4","562d247b26a0a10d00ad6be5","562d247b26a0a10d00ad6be6","562d247b26a0a10d00ad6be7","562d247b26a0a10d00ad6be8","562d247b26a0a10d00ad6be9","566f8106f11d5a0d007226fa","566fb8be1dabd80d00b1206c","566fb8c4cbb2fb0d00f7c4c0","566fb8c9e10ecb0d0004edd0","566fb8ea6995210d003aaa65","566fb8fce10ecb0d0004edd1","566fb901e10ecb0d0004edd2","566fb90e81801f0d00802d60","566fb9126995210d003aaa66"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-15T01:07:31.972Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"So far, we've covered code generation. But what about code automation?\n\nClick the **Scripts** tab to manage scripts for **Build**, **Stop** and **Run**:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/KFki3PyxQzyLRTu4m0tc_Screen%20Shot%202015-12-14%20at%208.49.58%20PM.png\",\n        \"Screen Shot 2015-12-14 at 8.49.58 PM.png\",\n        \"2560\",\n        \"1600\",\n        \"#1d5b93\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nFor example, if your project uses a package manager such as [npm](https://npmjs.com), you can install your dependencies during **Build**:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/kgOzjhjTCK4SYhBcrvUg_Screen%20Shot%202015-12-14%20at%208.51.44%20PM.png\",\n        \"Screen Shot 2015-12-14 at 8.51.44 PM.png\",\n        \"2560\",\n        \"1600\",\n        \"#946555\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nNow when you click the **Build** icon, your Build scripts will run after your code is generated (you can use the [console](doc:console) to monitor):\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/cuhwRpBuQF6SxvDKIZvg_Screen%20Shot%202015-12-14%20at%208.53.33%20PM.png\",\n        \"Screen Shot 2015-12-14 at 8.53.33 PM.png\",\n        \"2560\",\n        \"1600\",\n        \"#1d5b93\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"run-code","type":"basic","title":"Build and Run Code"}

Build and Run Code


So far, we've covered code generation. But what about code automation? Click the **Scripts** tab to manage scripts for **Build**, **Stop** and **Run**: [block:image] { "images": [ { "image": [ "https://files.readme.io/KFki3PyxQzyLRTu4m0tc_Screen%20Shot%202015-12-14%20at%208.49.58%20PM.png", "Screen Shot 2015-12-14 at 8.49.58 PM.png", "2560", "1600", "#1d5b93", "" ] } ] } [/block] For example, if your project uses a package manager such as [npm](https://npmjs.com), you can install your dependencies during **Build**: [block:image] { "images": [ { "image": [ "https://files.readme.io/kgOzjhjTCK4SYhBcrvUg_Screen%20Shot%202015-12-14%20at%208.51.44%20PM.png", "Screen Shot 2015-12-14 at 8.51.44 PM.png", "2560", "1600", "#946555", "" ] } ] } [/block] Now when you click the **Build** icon, your Build scripts will run after your code is generated (you can use the [console](doc:console) to monitor): [block:image] { "images": [ { "image": [ "https://files.readme.io/cuhwRpBuQF6SxvDKIZvg_Screen%20Shot%202015-12-14%20at%208.53.33%20PM.png", "Screen Shot 2015-12-14 at 8.53.33 PM.png", "2560", "1600", "#1d5b93", "" ] } ] } [/block]