Code Monkey home page Code Monkey logo

taxtoken's Introduction

Taxtoken

Generated a spring project using Spring boot.

Part 1:

  1. Created simple HTML page.
  2. Created Greeting controller to redirect the GET/ request to show the index.html 3.Created user class and usermodel class to hold the information about the users.
  3. usermodel has been hardcoded with data as a list .
  4. Created user RestController to handle the requests GET /{name}/birthday, GET /{name}/age, POST /user, PUT /user/{name}.
  5. Controllers have been annotated as RestControllers
  6. Response entity has been returned for POST /user and PUT /user/{name} requests.

Part 2:

  1. User class has been annotated as Entity to set it up as JPA entity.
  2. Added the required dependencies in pom.xml.
  3. Created userrepository class with @Repository annotation to make all the CRUD actions available for the usermodel.
  4. used the inbuilt methods like save() and findbyName() to save the user to repo and to get user from repo.

Part 3:

  1. Edited the HTML page to interact with rest of the APIs.
  2. Included the scripts for JS , JQUERY and CSS in the html file.
  3. Created an app.js file and used JQUERY to handle the post and get requests.
  4. Used thymeleaf template to populate the user information dynamically in a pre written template.

taxtoken's People

Watchers

James Cloos avatar Teja 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.