Coder Social home page Coder Social logo

spring-react-fullstack-microservice's Introduction


Run / check application

  • http://localhost:8000
  • http://localhost:8000/service/instances
  • http://localhost:8000/service/all

JAR - Prerequisite:

JAR - Create and Run

  • Create JAR

    • Local installations:
      • gradle clean build or if maven:
      • mvn clean install
    • With wrapper (no local installation needed)
      • ./gradlew clean build
  • Run

    • java –jar <JARFILE> (inside /build/libs )

Liquibase

Creates database and table-changes automatically when application is run, by using changelog files.

Repository

https://www.baeldung.com/spring-data-jpa-query

  • extends JpaRepository<User, Long>
  • @Query("select u.name from User u where u.id in (:pIdList)") ...use JPQL in repository

HTTP REST Controller

  • @RequestBody
  • @RequestParam
  • ResponseEntity<?> wrapper containing/controlling return entity and response method

Security

  • Frontend sends data with authentication encrypted heading
  • Backend password encryption
    • implemented by Spring Boot Security
    • Authorize requests for different websites (ant.Matchers(...))
    • Authentication implemented with ProviderManager
  • Authentication ... who are you (username, password)
    • HTTP Filters (used by spring security)
    • Authentication (is) Object, containing of
      • Principal
      • Credentials
      • Authorities

Spring Security

  • Default configurations about
    • userclass
    • userservice
    • login path
    • ...
  • UserDetailService
    • public class UserDetailServiceImpl implements UserDetailsService

Eureka

Microservices can communicate which each other via Eureka by using application-names.

spring-react-fullstack-microservice's People

Contributors

oliverzott avatar

Stargazers

 avatar

Watchers

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