Skip to content

KeithHello/java-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use this spring-boot project

  • Install packages with mvn package
  • Run mvn spring-boot:run for starting the application (or use your IDE)

Application (with the embedded H2 database) is ready to be used ! You can access the url below for testing it :

Don't forget to set the JDBC URL value as jdbc:h2:mem:testdb for H2 UI.

Instructions

  • download the zip file of this project

  • create a repository in your own github named 'java-challenge'

  • clone your repository in a folder on your machine

  • extract the zip file in this folder

  • commit and push

  • Enhance the code in any ways you can see, you are free! Some possibilities:

    • Add tests
    • Change syntax
    • Protect controller end points
    • Add caching logic for database calls
    • Improve doc and comments
    • Fix any bug you might find
  • Edit readme.md and add any comments. It can be about what you did, what you would have done if you had more time, etc.

  • Send us the link of your repository.

Restrictions

  • use java 8

What we will look for

  • Readability of your code
  • Documentation
  • Comments in your code
  • Appropriate usage of spring boot
  • Appropriate usage of packages
  • Is the application running as expected
  • No performance issues

Your experience in Java

Please let us know more about your Java experience in a few sentences. For example:

  • I have 3 years experience in Java and I started to use Spring Boot from last year
  • I'm a beginner and just recently learned Spring Boot
  • I know Spring Boot very well and have been using it for many years

My Information

Name

Li Hongji

What I have done

  • modify the API and repository
  • add API Key for authentication
    • right now just any request containing X-API-KEY with a corresponding value is fine
  • add cache logic for database layer
  • add comments for the new added source
  • add unit test for service level
    • mainly my experience is about JUnit 5 but I adjust the source here for JUnit 4
  • add exception handler to handle the case for no result
  • add entity for save API
    • because entity for save API doesn't need to set ID
  • use Lambok to generate Getter & Setter, Equals and Hash
  • use Model Mapper to map values for entities

My Experience

I have 3 years experience in Java and I have used Spring Boot for 2 years.

I learn Java and Spring Boot basically by work and self-learning.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages