Git Product home page Git Product logo

javaspringboot's Introduction

Java Coding Challenge

Objectvie

Your objective is to build an incredible experience for a simple rest service to retrieve user's information, while at the same time impressing us with how simple and clean your code is.

Please utilize this clean sprint boot project. Run it by typing ./mvnw in command line.

We receive many submissions daily, yours needs to stand out. We'd love to be impressed by the coding style, by the unit test, and by the little touches that make it slick.

####### install apache maven

after adding environmental path,

activate the conconfig

. ~/.bash_profile

mvn spring-boot:run

Requirments

  1. Endpoint A: by typing url http://localhost:8080/users in a browser, we expect a list of users returning in JSON format. E.g., [ { "id": 1, "name":"John", "age":31, "city":"New York" }, { "id": 2, "name":"Doe", "age":22, "city":"Vancouver" } ]

  2. Endpoint B: by typing url http://localhost:8080/user/2 in a browser, we expect a user with id=2 returning in JSON format. E.g., { "id": 2, "name":"Doe", "age":22, "city":"Vancouver" }

  3. Unit Test: we expect to see unit tests for above two endpoints.

  4. Optional: Uniform error handling, your code should also handle potential errors.

  5. Optional: Security, in most cases, a token is required to authorize the access of an endpoint. To make it happen, we expect to see a simple and general security control.

Evaluation your solution

  1. We were able to run your code using ./mvnw

  2. Tasks completed - are the tasks well completed

  3. Code quality - is your code clean, simple, readable, well designed

  4. Unit test - the endpoint and service are well tested

  5. Errors - handle errors gracefully

Submission

  • Do not place your code on GitHub or any other source version control platform.

  • Please email us a zip file, that we can unzip

  • Send your submission to [email protected], with subject java-coding-challenge.

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.