Creating a simple webpage, Assignments of Computer Programming

Guide in creating a webpage using vs code

Typology: Assignments

2020/2021

Uploaded on 04/27/2021

dlwlrmaa101
dlwlrmaa101 🇵🇭

1 document

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
IT & IM Department
College of Science
Web Frameworks
Midterm Examination
Follow the instructions carefully.
1. Download a new Laravel project on your PC/Laptop using composer. Name your project
as surnamePersonalWebpage. Write the code of the composer command that you use
when downloading the new project in the space provided below:
2. Make the project folder your server by executing the artisan command. Write the code
to enable the server.
pf3
pf4
pf5

Partial preview of the text

Download Creating a simple webpage and more Assignments Computer Programming in PDF only on Docsity!

IT & IM Department College of Science Web Frameworks Midterm Examination Follow the instructions carefully.

  1. Download a new Laravel project on your PC/Laptop using composer. Name your project as surnamePersonalWebpage. Write the code of the composer command that you use when downloading the new project in the space provided below:
  2. Make the project folder your server by executing the artisan command. Write the code to enable the server.
  1. Laravel Routes. Create the following routes in the Laravel project write your codes on the space provided: a. /home – display the text: Welcome to My Personal Homepage. b. /about - display the text: This page contains facts about me. c. /favorites – display the text: This page is all about my favorites. d. e. /gallery – display the text: This page includes captured moments in my life.
  2. Laravel Controller: Create a controller named PagesController using the Command Prompt. Write the code that you will use in the space provided below. a. In the PagesController.php include the lacking use statement for the controller to work.
  1. Public function gallery() - this function should include commands that will launch the gallery.blade.php
  2. Modify the route (web.php) so that it will use the controller and display the blade files.
  3. In the views folder of your Laravel project create a folder called layouts. Inside the folder create app. blade .php. Include the HTML skeleton in the file. Modify the skeleton and include some blade templating scripts so that other blade files can make use of the app.blade.php.
  1. Also, In the views folder create a folder named pages and create the following blade.php files. a. home.blade.php b. about.blade.php c. favorites.blade.php d. gallery.blades.php
  2. Design each pages (home, about, favorites, gallery) based on your personal information. Include a navbar in your design so that users can easily navigate thru your pages. Be as creative as possible. Use Bootstrap in your design. Additional design using Bootstrap will received additional points.