Skip to content

An application similar to Reddit: allow user to add a new posting, and view posting in database (posting-date descedning order)

Notifications You must be signed in to change notification settings

gracelf/Reddit-Clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Clone

An application similar to Reddit, which allow user to:

  1. Add a new posting.
  2. List existing posting from database.
  3. Search postings by keywords

Experience this app live on Heroku: https://reddit-clone-java.herokuapp.com      

Login with pre-created account-- Username:user/Password:password

Reference and notes:

  1. Thymeleaf format localdatetime/date/localdate http://www.baeldung.com/dates-in-thymeleaf
    For "LocalDateTime" data type, th:text="${#temporals.format(localDateTime, 'dd-MM-yyyy HH:mm')}"
    doesn't no work for instant class(current time?).
    However, For "Date" data type, th:text="${#dates.format(standardDate, 'dd-MM-yyyy HH:mm')}" would always work.

  2. Examples: Spring MVC - Binding URL query parameters with @RequestParam http://www.logicbig.com/tutorials/spring-framework/spring-web-mvc/spring-mvc-request-param/

  3. clickable url and open url in new window/tab
    target="_blank" is for opening url in a new tab/window th:href="@{|${link.url}| for underlining the link and make it clickable https://stackoverflow.com/questions/4964130/target-blank-vs-target-new

  4. @Requestparam To pass down a string variable input from HTML to @PostMapping

About

An application similar to Reddit: allow user to add a new posting, and view posting in database (posting-date descedning order)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •