Looking for Web Application Development (LTAT.05.004) test answers and solutions? Browse our comprehensive collection of verified answers for Web Application Development (LTAT.05.004) at moodle.ut.ee.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Testing 2.3. Which option is correct?
Testing 2.4. Which option is correct?
Testing 2.2. Which option is correct?
Testing 2.5. Which option is correct?
Testing 2.1. Which option is correct?
Project Setup:
You need to import this repository to your GitHub account
Note: you have to be logged in to your GitHub account to do the following steps
In the first field "Your old repository’s clone URL" enter URL of this repository
https://github.com/M-Gharib/exam-example-wad2025.gitNote: Please do not invite me as a collaborator for this example exam, just do it for the real exam.
)
After importing the repository, you can set up your project, as follows:
Important notes:
Note: if we observe suspicious behavior, the student involved will be called for an interview. Examples of suspicious behavior can be, all the commits happening with a non-realistic timeline, too many similarities between codes of students, etc.
App description:
1. Table 1 shows table "routes" that is created automatically in your database, also 6 records have been inserted into it.
In database.js that is in the ../server directory, you can find information related to the table and inserted records.TABLE "routes" | id | SERIAL PRIMARY KEY | | fromcity | VARCHAR(200) NOT NULL | | tocity | VARCHAR(200) NOT NULL | | cost | integer NOT NULL | | departuretime | VARCHAR(200) NOT NULL | | departuredate | VARCHAR(200) NOT NULL |
2. The backend app (Node.js) can deal with three different requests (GET, POST and DELETE). In server.js that is in the ../server directory, you can find more information related to these requests.Tasks:Task 1. Modify "AllRoutes.vue" to fetch the content of the "routes" table through a GET request and present it as shown in Figure 1. [X point]Note: the back-end can deal with this Get request, your code should be only in AllRoutes.vue
Figure 1.
Task 2. Add the required styling (CSS) to make the page looks like Figure 2. [X point]
Figure 2.
Task 3. Modify your code so that when the cost of a trip is more than 12, its background will be red. Otherwise, its background should be blue as shown in Figure 3. [X point]
Figure 3.
Task 4. Add an element that represents the number of trips as shown in Figure 4. [X point]
Note: the shown number should be dynamic (not static), i.e., it should count the number of offered trips and update the value when trips are added or removed.
Figure 4.
Another frontend example: (you might be presented with how the frontend looks and asked to code the functionalities and styling )
App description: same as above
Task 1. RouteManagement.vue (shown in the Figure below) is supposed to fetch and represent all available routes in the database. [X point]
Task 2. Each route should be represented as a row in a table accompanied by two buttons (update and delete). [X point]
Task 3. The update and delete button should update/delete the route of concern. Then, redirect to the homepage ("/") [X point]
Task 4. RouteManagement.vue should include a form that allows adding a new route when pressed on. [X point]
Task 5. the appearance of RouteManagement.vue should be close enough to Figure 5.[X point]
Figure 5.
Backend examples:
Task 1. Modify the put request in server.js in a way that allows modifying only the time and date of a trip. [X point]
Task 2. Write a Get request handler in server.js that takes a city name as a route parameter and returns all trips departing from that city. [X point]
Task 3. Write a Delete request handler that deletes all records in the database. [X point]
Task 4. ....
Another Backend example: (you might be presented with the front end App and asked to code the functionalities of the backend)
RouteManagement.vue (shown in the Figure 6) is supposed to fetch and represent all available routes in the database, it can also modify or delete any route, and add new routes through the form.
Task 1. Write a Get request handler in server.js that fetches all available trips from the database [X point]
Task 2. Write an update request handler in server.js that updates a specific trip as shown in the figure [X point]Note: the update button will trigger the update the updateRoute function, which you need to complete to provide the required functionality.Task 3. ...
Figure 6.