Quarkus Quarkus

Quarkus Quarkus

Practising Quarkus Quarkus Antonio Goncalves 2020-10-24 Table of Contents Foreword . 3 About the Author . 4 Acknowledgments . 5 Introduction. 7 Where Does This Fascicle Come From? . 7 Who Is This Fascicle For? . 8 How Is This Fascicle Structured? . 8 Conventions. 9 The Sample Application . 10 Downloading and Running the Code. 11 Getting Help. 12 Contacting the Author. 12 1. First Step with Quarkus . 13 2. Understanding Quarkus . 15 2.1. Understanding Quarkus . 15 2.2. Understanding MicroProfile . 15 2.3. Summary . 17 3. Getting Started . 18 3.1. What Will You Build in This Fascicle? . 18 3.1.1. Overall Architecture. 18 3.1.2. User Interface . 19 3.2. Setting up the Development Environment on macOS . 21 3.2.1. Installing the Required Tools . 21 3.2.2. Installing the Startup Code . 22 Directory Structure. 22 Maven Parent POM. 23 3.2.3. Executing the Startup Code . 25 3.2.4. Running the Infrastructure . 25 3.2.5. Building the Angular Web Application . 26 3.2.6. Checking Listening Ports. 27 3.3. Summary . 27 4. Developing the REST Number Microservice . 28 4.1. What Will You Build in This Chapter? . 28 4.1.1. Overall Architecture. 28 4.1.2. Directory Structure. 29 4.1.3. Maven Dependencies . 29 4.2. Number REST Endpoint . 32 4.2.1. The Number Resource . 33 4.2.2. The Book Numbers Class. 34 4.3. Injecting Configuration Value . 35 4.4. Customising the JSON Output . 36 4.5. OpenAPI . 38 4.5.1. Customising the OpenAPI Contract of the Number REST Endpoint . 40 4.5.2. Customising the BookNumber POJO . 41 4.5.3. Customising the OpenAPI Contract of the Application . 42 4.5.4. The Customised OpenAPI Contract. 43 4.5.5. Swagger UI . 44 4.6. Application Startup and Shutdown . 46 4.6.1. Displaying the Current Environment. 48 4.7. Running the Application. 48 4.7.1. Live Reload . 49 4.7.2. Configuring the Application . 49 Configuring the Quarkus Listening Port . 50 Configuring Logging. 50 4.7.3. Testing the Application . 50 Testing the Business Logic . ..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    210 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us