{"id":82,"date":"2019-09-25T06:10:12","date_gmt":"2019-09-25T06:10:12","guid":{"rendered":"https:\/\/docs.theironnetwork.org\/reactify\/?page_id=82"},"modified":"2019-10-10T08:21:16","modified_gmt":"2019-10-10T08:21:16","slug":"build-an-app-from-scratch","status":"publish","type":"page","link":"https:\/\/docs.theironnetwork.org\/reactify\/build-an-app-from-scratch\/","title":{"rendered":"Build an App from Scratch"},"content":{"rendered":"\n<p>You can easily build your app from scratch, just follow the steps given below:<\/p>\n\n\n\n<ol><li>Copy the project files from the downloaded <strong>ThemeForest<\/strong> project.<\/li><li>Open terminal and go to the root directory and then run <code>npm install<\/code>.<\/li><li>After installing npm then run <code>npm start<\/code>.<\/li><li>Open your browser and access <a rel=\"noreferrer noopener\" href=\"http:\/\/localhost:3000\/\" target=\"_blank\"><code>http:\/\/localhost:3000<\/code><\/a>.<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator mt-5 mb-4\"\/>\n\n\n\n<h4 id=\"integrate-new-widget\"><strong>Integrate New Widget<\/strong><a href=\"#integrate-new-widget\"><\/a><\/h4>\n\n\n\n<p>Please follow the <a href=\"https:\/\/docs.theironnetwork.org\/reactify\/adding-widgets\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Adding New Widgets (opens in a new tab)\">Adding New Widgets<\/a> section to learn how to add new widgets in the template.<\/p>\n\n\n\n<hr class=\"wp-block-separator mt-5 mb-4\"\/>\n\n\n\n<h4 id=\"integrate-new-component-page\"><strong>Integrate New Component\/Page<\/strong><a href=\"#integrate-new-component-page\"><\/a><\/h4>\n\n\n\n<h5 id=\"for-seed-project\">For <strong>seed project<\/strong>:<a href=\"#for-seed-project\"><\/a><\/h5>\n\n\n\n<p>By default seed project contains dashboard page means you can easily build your dashboard.<\/p>\n\n\n\n<p>If you want to add some <strong>pre-made components or pages<\/strong> then follow below steps:<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Copy the page template from <code>reactify-redux-thunk-&gt;src-&gt;routes<\/code> of downloaded <strong>ThemeForest<\/strong> files and paste it into under the <code>your-app-directory-&gt;src-&gt;routes<\/code> directory.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Now you need to define the route in the <code>your-app-directory-&gt;src-&gt;services-&gt;_routerService.js<\/code> file. Let us take an example of adding simply a <code>Pages<\/code> component that adds a blank page in your template. Also you need to import the component in the desired area like in the code given below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import Dashboard from 'Routes\/dashboard';<br> <br>\/\/ Import the component here<br>import Pages from 'Routes\/pages';<br> <br>export default [<br>   {<br>      path: 'dashboard',<br>      component: Dashboard<br>   },<br> <br>   \/\/ Newly Added Component<br>   {<br>      path: 'pages',<br>      component: Pages<br>   }<br>]<\/pre>\n\n\n\n<p><strong>Step 3: <\/strong>Open the file <code>components-&gt;AsyncComponent-&gt;AsyncComponent.js<\/code> and define the component in the async components and export it in the area defined in the given code snippet.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/**<br> * AsyncComponent<br> * Code Splitting Component \/ Server Side Rendering<br> *\/<br>import React from 'react';<br>...<br> <br>\/\/ Define the Pages Component<br>const AsyncBlankComponent = Loadable({<br>   loader: () =&gt; import(\"Routes\/pages\/blank\"),<br>   loading: () =&gt; &lt;RctPageLoader \/&gt;,<br>});<br> <br>export {<br> ...<br> <br>    \/\/ Export it here<br>    AsyncBlankComponent<br>};<br>\u200c<br><\/pre>\n\n\n\n<p><strong>Step 4:<\/strong> That\u2019s it if you navigate <a href=\"http:\/\/localhost:3000\/app\/pages\/blank\" target=\"_blank\" rel=\"noreferrer noopener\"><code>http:\/\/localhost:3000\/app\/pages\/blank<\/code><\/a> . The page has been build successfully.<\/p>\n\n\n\n<p>If you want to <strong>add some new components<\/strong> by your own, then follow the steps mentioned below:<\/p>\n\n\n\n<p>Please check this <a href=\"https:\/\/docs.theironnetwork.org\/reactify\/adding-menu-component-in-different-layouts\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Adding Menu\/Component In Different Layouts<\/a> section to get detailed information on this.<\/p>\n\n\n\n<h5 id=\"for-complete-template\">For complete template:<a href=\"#for-complete-template\"><\/a><\/h5>\n\n\n\n<p>If you are using the complete template then you are able to add only new components or pages &amp; for that you have to follow the below mentioned steps:<\/p>\n\n\n\n<p>Please check this <a rel=\"noreferrer noopener\" aria-label=\"Adding Menu\/Component In Different Layouts (opens in a new tab)\" href=\"https:\/\/docs.theironnetwork.org\/reactify\/adding-menu-component-in-different-layouts\/\" target=\"_blank\">Adding Menu\/Component In Different Layouts<\/a> section to get detailed information on this.<\/p>\n\n\n\n<h4 id=\"integrating-menu\">Integrating Menu<a href=\"#integrating-menu\"><\/a><\/h4>\n\n\n\n<p>If you want to add menu items then please check this section <a href=\"https:\/\/docs.theironnetwork.org\/reactify\/adding-menu-component-in-different-layouts\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Adding Menu\/Component In Different Layouts (opens in a new tab)\">Adding Menu\/Component In Different Layouts<\/a> for the detailed information.<\/p>\n<div class=\"pld-like-dislike-wrap pld-template-1\">\n    <div class=\"pld-like-wrap  pld-common-wrap\">\n    <a href=\"javascript:void(0);\" class=\"pld-like-trigger pld-like-dislike-trigger \" title=\"\" data-post-id=\"82\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-ip-check=\"0\" data-user-check=\"1\">\n                        <i class=\"fas fa-thumbs-up\"><\/i>\n                    <\/a>\n    <span class=\"pld-like-count-wrap pld-count-wrap\">2    <\/span>\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\n    <a href=\"javascript:void(0);\" class=\"pld-dislike-trigger pld-like-dislike-trigger \" title=\"\" data-post-id=\"82\" data-trigger-type=\"dislike\" data-ip-check=\"0\" data-restriction=\"cookie\" data-user-check=\"1\">\n                        <i class=\"fas fa-thumbs-down\"><\/i>\n                    <\/a>\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\n<\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>You can easily build your app from scratch, just follow the steps given below: Copy the project files from the downloaded ThemeForest project. Open terminal and go to the root directory and then run npm install. After installing npm then run npm start. Open your browser and access http:\/\/localhost:3000. Integrate New Widget Please follow the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":8,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/82"}],"collection":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":6,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/82\/revisions"}],"predecessor-version":[{"id":641,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/82\/revisions\/641"}],"wp:attachment":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/media?parent=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}