{"id":210,"date":"2019-09-25T10:06:17","date_gmt":"2019-09-25T10:06:17","guid":{"rendered":"https:\/\/docs.theironnetwork.org\/reactify\/?page_id=210"},"modified":"2019-10-10T07:27:33","modified_gmt":"2019-10-10T07:27:33","slug":"installation-reactify-laravel","status":"publish","type":"page","link":"https:\/\/docs.theironnetwork.org\/reactify\/installation-reactify-laravel\/","title":{"rendered":"Installation Reactify Laravel"},"content":{"rendered":"\n<p>Given below are the steps you need to follow, to install the reactify-laravel on your system:<\/p>\n\n\n\n<p><strong>Step 1: <\/strong>Open the terminal in your root directory &amp; to install the composer packages run the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">composer install<\/pre>\n\n\n\n<p><strong>Step 2: <\/strong>In the root directory, you will find a file named <code>.env.example<\/code> rename the given file name to  <code>.env<\/code> and run the following command to generate the key.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php artisan key:generate<\/pre>\n\n\n\n<p><strong>Step 3: <\/strong>By running the following command, you will be able to get all the dependencies in your <code>node_modules<\/code> folder:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm install<\/pre>\n\n\n\n<p><strong>Step 4: <\/strong>To run the project you need to run following command in the project directory. It will compile all the project files. If you make any changes in the react files then you need to run the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm run dev<\/pre>\n\n\n\n<p><strong>Step 5: <\/strong>If you want to run the project and make the build in the production mode then run the following command in the root directory, otherwise the project will continue to run in the development mode.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm run prod<\/pre>\n\n\n\n<p><strong>Step 6: <\/strong>To serve the application you need to run the following command in the project directory. (This will give you an address with port number 8000)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php artisan serve<\/pre>\n\n\n\n<p>Now navigate to the given address you will see your application is running.<\/p>\n\n\n\n<p>To change the port address, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php artisan serve --port=8080 \/\/ For port 8080<br>sudo php artisan serve --port=80 \/\/ If you want to run it on port 80, you probably need to sudo.<\/pre>\n\n\n\n<h4>Facing Any Issues Regarding Permissions ?<a href=\"#facing-any-issues-regarding-permissions\"><\/a><\/h4>\n\n\n\n<p>If you are facing any issues regarding the permissions, then you need to run the following command in your project directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chmod -R o+rw bootstrap\/cache<br>sudo chmod -R o+rw storage<\/pre>\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=\"210\" 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\">1    <\/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=\"210\" 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>Given below are the steps you need to follow, to install the reactify-laravel on your system: Step 1: Open the terminal in your root directory &amp; to install the composer packages run the command: composer install Step 2: In the root directory, you will find a file named .env.example rename the given file name to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":41,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/210"}],"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=210"}],"version-history":[{"count":3,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/210\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/pages\/210\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/docs.theironnetwork.org\/reactify\/wp-json\/wp\/v2\/media?parent=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}