> For the complete documentation index, see [llms.txt](https://iron-network.gitbook.io/reactify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iron-network.gitbook.io/reactify/reactify-laravel/getting-started.md).

# Installation Reactify Laravel

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 & 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  `.env` and run the following command to generate the key.

```
php artisan key:generate
```

**Step 3:** By running the following command, you will be able to get all the dependencies in your `node_modules` folder:

```
npm install
```

**Step 4:** 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.

```
npm run dev
```

**Step 5:** 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.

```
npm run prod
```

**Step 6:** 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)

```
php artisan serve
```

Now navigate to the given address you will see your application is running.

To change the port address, run the following command:

```
php artisan serve --port=8080 // For port 8080
sudo php artisan serve --port=80 // If you want to run it on port 80, you probably need to sudo.
```

#### Facing Any Issues Regarding Permissions ?

If you are facing any issues regarding the permissions, then you need to run the following command in your project directory:

```
sudo chmod -R o+rw bootstrap/cache
sudo chmod -R o+rw storage
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://iron-network.gitbook.io/reactify/reactify-laravel/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
