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

# Installation

1- Clone the repository: `git clone https://github.com/MoatazSalah306/chat_app.git`

2- Install dependencies: **Run** `composer install && npm install`

3- Set up the `.env` file: Copy `.env.example` to `.env` and configure database, broadcasting, and Pusher keys.

4- Run migrations: `php artisan migrate`

<mark style="color:blue;">**After you finish this setup**</mark>

Split three terminals in vs code or any other code editor.

**first terminal:** Run `npm run dev` for compiling your frontend assets.

**second terminal:** Run `php artisan serve` starts the Laravel development server.

**third terminal:** Run `php artisan queue:work` processes jobs from the queue to help you enjoy with real-time chatting.

**`!!!!!! Important to ensure that you're in light mode whether in your system or browser because the app doesn't support dark mode.`**


---

# 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://moataz-salahs-organization.gitbook.io/chatter/getting-started/installation.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.
