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

# Open Project Laravel

When the development tools are setup you can continue by setting up the Laravel project first

Open the `Laravel API/forumapp` directory using VSCode or any of your favorite development tools for the Laravel project.

<figure><img src="https://2096397846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2NeKrSYPgnro8guwJzm%2Fuploads%2FuZzGlZvqOHUgv2Ig1R9F%2FScreenshot%202023-08-10%20at%2016.43.17.png?alt=media&amp;token=afa27cd8-91c3-4833-aebd-86dec8820499" alt=""><figcaption></figcaption></figure>

and edit the *.env* file and configure your local database connection

<figure><img src="https://2096397846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2NeKrSYPgnro8guwJzm%2Fuploads%2Fy4VWWPGYBc090IwuoifZ%2FScreenshot%202023-08-09%20at%2022.20.14.png?alt=media&amp;token=4aab19b6-a062-4b47-baad-68bf9f520a0f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2096397846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2NeKrSYPgnro8guwJzm%2Fuploads%2Fzko9T1Ez6eVoXxN4Gv2r%2FScreenshot%202023-08-09%20at%2021.03.14.png?alt=media&amp;token=1313b035-3661-4651-9173-64672e5dbad7" alt=""><figcaption><p>Look for this line in the .env file</p></figcaption></figure>

You also need install a composer dependency for *JWT Token Auth* by running this command:

```
composer require tymon/jwt-auth
```

Please refer to this link for further explanation about how to integrate JWT Authentication on laravel :&#x20;

<https://www.positronx.io/laravel-jwt-authentication-tutorial-user-login-signup-api/>

Migrate the database using this command

```
php artisan migrate
```

After everything is set up, you can try running this command to see if the Laravel project can be run in your local computer

```
php artisan serve

// or to make it accessible from your ios device
// run this command instead

php artisan serve --host 0.0.0.0 
```

You can check if the Laravel project is successfully running by typing this url into your browser (adjust the port with your server configuration)

```
http://localhost:8080/
```

Import the PostMan API collection file to look at all the list of API needed for the project. Refer to this link for the Postman installation : <https://www.postman.com/downloads/>

<figure><img src="https://2096397846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2NeKrSYPgnro8guwJzm%2Fuploads%2FUcpJZae4pNGoXOzmGjtk%2FScreenshot%202023-08-10%20at%2016.09.24.png?alt=media&amp;token=22d0c428-2cf5-4c2b-8958-3d1291018df8" alt=""><figcaption><p>Postman Collection</p></figcaption></figure>
