---
title: "Laravel Jetstream with inertiajs on MAMP"
description: "How to setup Laravel Jetstream with Inertiajs on localhost (MAMP)"
canonical_url: "https://codingoblin.com/blog/laravel-jetstream-with-inertiajs"
last_updated: "2026-05-16T06:04:46.697Z"
---

## How to setup Laravel Jetstream with Inertia.js on MAMP localhost

Getting setup with Laravel Jetstream and Inertiajs is a simple process and can be done in 5 minutes. All code for this tutorial can be found below the video.

<script-you-tube-player video-id="jJIGNg-1CYs">
<steps level="3">

### Install Laravel

The first thing you need to do is install Laravel. In the terminal go to the folder where you want to install your Laravel Jetstream project. Run the following command, replacing 'business_tool' with the name you want to give your project:

```bash [terminal]
composer create-project laravel/laravel business_tool
```

Let the installation run, it may take a minute or so depending on the speed of your internet.

### Install Jetstream

Now we have Laravel installed, we need to install Jetstream. Navigate to the Laravel project you just created in the terminal (replace 'business_tool' with the name of your project):

```bash [terminal]
cd business_tool
```

Then run the following command:

```bash [terminal]
composer require laravel/jetstream
```

Again, let the installation happen, it might take a while.

### Install Inertia.js

Run the following command to install Inertia.js:

```bash [terminal]
php artisan jetstream:install inertia
```

Now run:

```bash [terminal]
npm install
```

Let it install then run:

```bash [terminal]
npm run build
```

Let the build happen. We are nearly there!

### Create a database in MAMP

Now we need to create a database in MAMP so that we can use our new Laravel Jetstream installation on our localhost. Open the MAMP WebStart page and navigate to "phpMyAdmin"

![phpMyAdmin](https://codingoblin.com/wp-content/uploads/2022/09/Screenshot-2022-09-17-at-17.42.31-300x201.png)

Now give your database a name and click create:

![Create database](https://codingoblin.com/wp-content/uploads/2022/09/Screenshot-2022-09-17-at-17.43.10-300x99.png)

### Edit your .env file

We now need to edit the .env file in your project. Go ahead and open up the file. Find where the database configurations are and enter the following (remember to replace "business_tool" with the name of the database you just created). Add "DB_SOCKET" and make it equal to the the socket displayed on the MAMP WebStart page under MySQL.

```env [.env]
DB_DATABASE=business_tool
DB_USERNAME=root
DB_PASSWORD=root
DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock
```

### Run the migration command

We now need to run the migration artisan command:

```bash [terminal]
php artisan migrate
```

Your database should now be up and running. We just have a couple more commands to run and we will be setup with Laravel Jetstream and inertiajs!

### Last commands to complete the setup of Laravel Jetstream with Inertiajs

We now need to run a couple of commands to get our Jetstream app going:

```bash [terminal]
php artisan serve
```

Now open another terminal window. This is important because the previous command and the next command need to be running simultaneously . In the new terminal window run:

```bash [terminal]
npm run dev
```

</steps>

#### You're good to go!

Now you are all set up! Head over to localhost:8000 and you should see your Laravel Jetstream app with inertiajs all setup!

![Laravel Jetstream App](https://codingoblin.com/wp-content/uploads/2022/09/Screenshot-2022-09-17-at-18.07.18-300x158.png)

</script-you-tube-player>
