Skip to content

WebLabT1-16/final-examination-UriMts-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FGC Final Examination

The domain of the exercice is the public transportation (Ferrocarrils de la Generalitat de Catalunya) and their users. It's aim is to give some complementary services around FGC lines.

Classes in the domain:

  • User
  • Station
  • Journey (consist of two stations: the origin and the destination)
  • DayTimeStart (consist of a dayOfWeek and a start time)
  • FavoriteJourney (a journey that a user travels frequently and when he uses it: consists of a Journey and a list of DayTimeStart)

Exam completion

In order to fulfill the exam you'll need to go through 6 different TODOs your'll find in the code. See that each TODO has an explanation of what you need to do, a list of clues (titled "Note that") and a "POSTCONDITION" section where states what test must pass after you completed the code

Usually each TODO involves very few lines of code

See that in the bottom of the Intellij window there is a tab that list all TODOs (tab 6:TODO)

Application use cases

  1. Get the stations from and API REST and save to the database
  2. List all the stations (http://localhost:8080/stations)
  3. List the favorite journeys from a given user (http://localhost:8080/users/username/favoriteJourneys)
  4. Add a favorite journeys to a given user (http://localhost:8080/users/username/add/favoriteJourney)

The application has already two users:

  • username: messi, password: messi
  • username: ronaldo, password: ronaldo

You'll work on the following

  1. Get the stations from an API REST and save to the database
  • TODO 1 : JDBC
  • TODO 2 : rest client
  1. Error handling: when the username doesn't exist
  • TODO 3
  1. A get method that returns the form to add a new favorite jouney to a user. The form needs the username and the station list
  • TODO 4
  1. The form itself. Work with Thymeleaf
  • TODO 5
  1. Security: state the security rules
  • TODO 6

About

Examen Lab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors