concept source code in category microservice

appears as: source code, The source code, source code
Microservices Security in Action

This is an excerpt from Manning's book Microservices Security in Action.

The JDK is required to compile the source code in the samples. You can download the latest JDK from http://mng.bz/OMmo. We used Java version 11 to test all the samples.

Next, let’s take a look at the source code that generates this content. As we mentioned earlier, you’re using an Angular web application hosted on Node.js. In discussing the benefits of a SPA in appendix C, we mention that because SPAs have a simple design and content, they can be deployed on any simple HTTP hosting service. This web application, like any standard web application, has an index file named index.html. The file is located at sample01/ui/src/app/index.html. You can open this file with any text editor or an IDE. The interesting feature of this HTML file is the content of the <body> element:

Spring Microservices in Action

This is an excerpt from Manning's book Spring Microservices in Action.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.thoughtmechanix</groupId>
  <artifactId>licensing-service</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>
  <name>EagleEye Licensing Service</name>
  <description>Licensing Service</description>
  <parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>              #1
      <version>1.4.4.RELEASE</version>
      <relativePath/>
  </parent>
  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>                #2
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>           #3
    </dependency>
  </dependencies>
<!—-Note: Some the build properties and Docker build plugins have been excluded from the pom.xml in this pom (not in the source code in the github repository) because they are not relevant to our discussion here. -->
<build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>             #4
      </plugin>
    </plugins>
  </build>
</project>

Because all chapters in the book follow the same structure and use Maven as their build tool, it becomes extremely simple to build the source code. Every chapter has at the root of the directory a pom.xml that acts as parent pom for all the sub-chapters. If you want to compile the source code and build the Docker images for all the projects within a single chapter, you need to run the following at the root of the chapter: