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.

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

Look for this line in the .env file

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 :

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/

Postman Collection

Last updated