Join GitHub today
Task 1 Getting Started
To register for the project, you must have an account on GitHub and register for the class on Piazza. Then fill out your details in the registration form. In the form you can give your preferred project partners, we will then form groups of 4 or 3 people if necessary, trying to respect your preferences.
The registration will close on Tuesday September 26 @ 23:59. The groups will be communicated the following Wednesday.
Dive into Spring MVC (Recommended)
Make yourself familiar with the development in Spring MVC. This means you have to learn how to use Spring and Maven. Make sure you have a recent JDK 8 installed. You can also use STS, an Eclipse specifically for Spring. STS provides also an easy integration of some tutorials.
To get started with Spring, we recommend completing the following guides:
If you are able to build a basic blog application that lets you create, read, update and delete blog posts in the browser, you should be prepared for the project. In the best case, you even have tests.
Other guides that introduce features that will become relevant in the course of the project are:
Databases and MySQL*
Notice that the guide Use JPA to persist data does not yet deal with MySQL, so you don't have to worry about setting up a MySQL database just yet. You will first have to do that in the guide MySQL as a database. Below are some useful tips concerning the MySQL guide.
Local MySQL server
To set up a MySQL database we suggest using XAMPP. This tool automatically installs a MySQL server and provides a PHPMyAdmin GUI at http://localhost/phpmyadmin which allows you to access, create and edit the database. In the XAMPP control panel, just start the Apache and MySQL modules, then point your browser to http://localhost/phpmyadmin.
The default user name is root and there is no password. You shouldn't be asked about that when logging in to PHPMyAdmin, but it's important when you want to connect your application to the database, e.g. while completing the MySQL guide.
Keeping tables when re-running the project
Once you have completed the MySQL guide, you may notice that the tables of your database are dropped every time you re-run the project. This is due to the line
spring.jpa.hibernate.ddl-auto=create in the
application.properties file. If you want your tables to be kept when re-running the project, you can simply change this property from
update. Like this, Spring will only update the schema when necessary, but it won't drop the tables when starting the application.