CCS3310 Software Engineering Methods – Lesson 5

What we did today (summary)


Terminal command to be typed in: c:/laragon/www
1. Install Laravel (project name is ccs3310):

composer create-project laravel/laravel ccs3310

2. Now open the project folder with VS-Code (or your preferred IDE). Open the .env file and update the database setting as follows:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ccs3310
DB_USERNAME=root
DB_PASSWORD=

 3. From the terminal type the following to goto the project folder:

cd ccs3310

 4. Then type the following to migrate the db tables and start the Laravel dev server:

php artisan migrate
php artisan serve

 Open a browser and goto localhost:8000, here you should see Laravel running successfully

Read the next steps here to understand how the MVC architecture works: https://laravel.com/docs/11.x#next-steps

Recorded lesson:


References:

Laravel is a powerful framework, and the Laravel request lifecycle is the best place to start when you want to learn more about the framework itself.

https://hrritik65.medium.com/laravel-lifecycle-working-of-laravel-894a62ed7444

https://medium.com/@omobadesanya/installing-and-getting-laravel-working-on-windows-in-few-steps-using-laragon-ad74da0d1e37


All lessons > 

Share