{"__v":14,"_id":"56cdd013f6be970b00663fc0","category":{"__v":3,"_id":"56cdcc6e70db8a15006395f4","pages":["56cdcd6249abf10b0036a2e6","56cdd013f6be970b00663fc0","56cdd562f099c023009791a7"],"project":"552829408962f339009a678d","version":"552829408962f339009a6790","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-24T15:29:50.989Z","from_sync":false,"order":4,"slug":"web-sdk","title":"Web SDK"},"parentDoc":null,"project":"552829408962f339009a678d","user":"55282916d9e1db2d00cd923c","version":{"__v":26,"_id":"552829408962f339009a6790","project":"552829408962f339009a678d","createdAt":"2015-04-10T19:49:20.516Z","releaseDate":"2015-04-10T19:49:20.516Z","categories":["552829418962f339009a6791","55284ed68962f339009a67e1","55286c73391a362500d9b3f4","552918f6b316811900149f59","5529b255d739240d00a3483e","553287590a578a0d008d4ff5","55329385e7d1fa0d003fc946","5550b55200420e0d00d1312f","55525fca953c9c0d00f507d7","559199695631432f002d358a","559d8d96980b801700d5ec7e","55c5e833cccdeb2d004e24b9","55d76504f662951900fc0e7d","55ea213cc62aa02f008229cd","56157b750f5ed00d00483dd8","561981fbac0924170069f4e8","561b8b1ea430930d0037ea67","563417428b86331700b488ca","56cd785bface161300dae0ec","56cdcc6e70db8a15006395f4","56cdf1b749abf10b0036a34a","56cedc8ce50c9c1b00830423","56e97ba8d825061900d1ac83","570d505228e6900e00477229","573614ca2ab52e1700c8e851","57d556a2496a3117004d70cf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-24T15:45:23.978Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"This page describes quick start guide to build your first web app with Actor.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 1: Node.js\"\n}\n[/block]\nMinimum requirements:\n```bash\n$ node -v\nv4.2.2\n$ npm -v\n3.3.8\n```\n\nBuilding web application requires `Node.js` 4.2.2+ and `npm` 3.3.8+.\n\nWe don't support **Node.js 5.x**.\n\nIf you have the same version of Node.js and npm or higher you can easily go to Step 2. Otherwise read [Node.js installation instructions](doc:web-sdk-prerequisites) and install correct versions. You can find more info about Node.js at [official site](https://nodejs.org/).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 2: Checkout Bootstrap Project\"\n}\n[/block]\nCheckout sources from [actor-bootstrap](https://github.com/actorapp/actor-bootstrap) repo and open `app-web` directory:\n```bash\ngit clone https://github.com/actorapp/actor-bootstrap.git\ncd actor-bootstrap/app-web\n```\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 3: Dependencies\"\n}\n[/block]\nBefore build you must install dependencies.\n\nSome of them must be installed globally, what you can easily do with next command:\n\n```bash\nnpm install -g babel-cli webpack node-sass gulp eslint gulp-image\n```\n\nThen, install all other dependencies with:\n\n```bash\nnpm install\n```\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 4: Starting Development Server\"\n}\n[/block]\nAfter installing all the dependencies, you can test it with:\n\n```bash\ngulp dev\n```\nIt will start development server which you can reach at http:///localhost:3000\n\nIf all works fine, you can begin to set up your application.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Step 5: Building Release Web App\"\n}\n[/block]\n```bash\ngulp build --release\n```\n\nThis command will build an application in `dist` folder.\nYou can easily grab it here and host wherever you like.","excerpt":"Building Web App with Actor SDK for Web","slug":"web-sdk-getting-started","type":"basic","title":"Getting Started"}

Getting Started

Building Web App with Actor SDK for Web

This page describes quick start guide to build your first web app with Actor. [block:api-header] { "type": "basic", "title": "Step 1: Node.js" } [/block] Minimum requirements: ```bash $ node -v v4.2.2 $ npm -v 3.3.8 ``` Building web application requires `Node.js` 4.2.2+ and `npm` 3.3.8+. We don't support **Node.js 5.x**. If you have the same version of Node.js and npm or higher you can easily go to Step 2. Otherwise read [Node.js installation instructions](doc:web-sdk-prerequisites) and install correct versions. You can find more info about Node.js at [official site](https://nodejs.org/). [block:api-header] { "type": "basic", "title": "Step 2: Checkout Bootstrap Project" } [/block] Checkout sources from [actor-bootstrap](https://github.com/actorapp/actor-bootstrap) repo and open `app-web` directory: ```bash git clone https://github.com/actorapp/actor-bootstrap.git cd actor-bootstrap/app-web ``` [block:api-header] { "type": "basic", "title": "Step 3: Dependencies" } [/block] Before build you must install dependencies. Some of them must be installed globally, what you can easily do with next command: ```bash npm install -g babel-cli webpack node-sass gulp eslint gulp-image ``` Then, install all other dependencies with: ```bash npm install ``` [block:api-header] { "type": "basic", "title": "Step 4: Starting Development Server" } [/block] After installing all the dependencies, you can test it with: ```bash gulp dev ``` It will start development server which you can reach at http:///localhost:3000 If all works fine, you can begin to set up your application. [block:api-header] { "type": "basic", "title": "Step 5: Building Release Web App" } [/block] ```bash gulp build --release ``` This command will build an application in `dist` folder. You can easily grab it here and host wherever you like.