> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipmobilefast.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 4. Build your app

> Build your app

**Step 1**

In the previous step, we created our AI Proxy backend.

Now we can create a development build on Expo.

**Step 2**

There are two ways to build the app.

* **Using the prebuild command**
* **Using the EAS Build**

> [!NOTE]
>
> I am going to show you both ways but I am going to use the prebuild command.
>
> Because the fastest way to build the app is using the prebuild command.

> [!WARNING]
>
> But eventually, you will need to use the EAS Build to build the app for production.

**Step 3**

First, open terminal and run the following command:

> [tab] Prebuild
>
> **Step 1**
>
> ```bash theme={null}
> npx expo prebuild
> ```
>
> **Step 2**
>
> ```bash theme={null}
> npx expo run:{platform}
> ```
>
> > [!NOTE]
> >
> > Replace `{platform}` with `ios` or `android`.

> [tab] EAS Build
>
> **Step 1**
>
> ```json eas.json (1,3) theme={null}
> "build": {
> "development": {
>     "developmentClient": true,
>     "distribution": "internal",
>     "ios": {
>     "simulator": true
>     }
>   }
> }
> ```
>
> **Step 2**
>
> ```bash theme={null}
> eas login
> ```
>
> **Step 3**
>
> ```bash theme={null}
> eas init
> ```
>
> **Step 4**
>
> ```bash theme={null}
> eas build --profile development --platform {platform}
> ```
>
> > [!NOTE]
> >
> > Replace `{platform}` with `ios` or `android`.

**Step 4**

After the build is finished, you can run the app on your device.

**Step 5**

If you want to run the app on your device, you can use the following command:

```bash theme={null}
npx expo run:{platform} --device
```

> [!NOTE]
>
> Replace `{platform}` with `ios` or `android`.
>
> Pick a device from the list.

**Step 6**

### Now how we can deploy our backend on Production?

> [card] [How to deploy backend to Railway](https://docs.shipmobilefast.com/aiwrapper/deployment.md)
>
> Click to navigate to the [How to deploy backend to Railway](https://docs.shipmobilefast.com/aiwrapper/deployment.md) page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.