Skip to content

tholou/SpringMVC-Guestbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringMVC-Guestbook

Purpose of this project is to create a Spring MVC based web application, a guestbook – users can leave comments and reply to other comments.

Quickstart

Note
The Quickstart requires Java 8, Maven 3 and a recent Git (2.2.x preferred) to be available on your machine.
$ git clone https://github.com/tholou/SpringMVC-Guestbook.git
$ cd guestBook
$ Set up Database (postgres) by create a new db called "guestBook" on port 5433
$ put this "spring.jpa.hibernate.ddl-auto=create-drop" in the application.properties on first run to create the necessary tables in the Database.
$ put this "spring.jpa.hibernate.ddl-auto=update" in the application.properties on the second run for maintaining the database.
$ mvn clean package
$ mvn spring-boot:run

After that point your browser to http://localhost:8080/guestbook.

Requirements:

  • Functional requirements:

    FR1. The user can enter the following data: name, e-mail and comment
    FR2. The fields „name“ and „comment“ are mandatory
    FR3. If the user has entered an e-mail address, the application must check its validity (just a format check, not if the domain actually exists)
    FR4. The user must be able to reply to other comments. When replying, the original comment is cited in the reply
  • Non-functional requirements:

    NFR1. The application doesn’t have to save the comments to a database, the comments have to persist only until the application is restarted
    NFR2. The application must use the MVC (model-view-controller) pattern
    NFR3. The application must be based on the Spring MVC framework
    NFR4. The application must be built using a widely used build tool (i.e. Gradle or Maven)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published