Code Monkey home page Code Monkey logo

reddit-clone's Introduction

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

reddit-clone's People

Contributors

aavolkova avatar antarmaharjan avatar gracelf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.