How to Integrate Your Spring Boot API with Single-Page Applications

Learn 4 different ways to integrate and secure your Spring Boot application or microservice with a single-page application as the UI. We are using Spring Security.

We learn best by coding.

Start learning now

What you will learn

  • How to secure your API in Spring Boot 2.x
  • How to use pagination for huge lists in your API
  • How to protect your API with basic auth with Spring Security
  • How to use Cross-Origin Resource Sharing (CORS) with Spring Boot and Spring Security
  • How to implement JSON Web Tokens (JWT) in Spring Security
  • How to use stateful authentication for your API and UI
  • How to protect your application against Cross-Site-Request-Forgery (CSRF)
  • How to make better decisions when to use which integration type

At the end of the guide, you will have implemented all four ways and choose a way for your next project with confidence.

Start learning now

Who is this not right for

The guide is not for you if you have never developed in Java or your most advanced application is Hello World. You also must have some knowledge about Spring Boot. If you are new to Spring Boot, check out the first pocket guide Spring Boot: How To Get Started and Build a Microservice.

The Project(s)

We put a single-page application (SPA) written in Angular 4 and Typescript on top of our microservice we created in the first pocket guide (We briefly cover it here). The SPA is pre-made and covers a simple workflow for login, listing comments and deleting comments.

In the projects, we will explore 4 common ways to secure your API and integrate it with a SPA. The focus is on Spring Boot; however, we also cover the changes in the SPA briefly.

You will also get these awesome bonuses

  • Full source code of the final application of all 4 variations

Start learning now

Ready to buy?

Get everything you need to secure your Spring Boot microservice / application.

DELUXE EDITION:

  • The Pocket Guide DRM-free in Kindle, ePub and PDF format
  • Full source code
  • Exclusive Slack Access (coming soon)
  • FREE Updates for Life

Buy now for just $25

Want to save 26$? Get this guide as part of the Spring Boot Pocket Guides Complete Bundle.

Your 100% Money-Back Guarantee

Don’t put off to secure your Spring Boot applications. If you are not satisfied with the guide, email me within 14 days of your purchase, and I give you a full refund. I don’t ask questions; however, it would be great if you give me quality feedback so I can improve on it.

But don’t take my word for it

A must have for software developers who are trying to integrate Angular with spring boot. Crystal clear explanations, one of the few books which serve the purpose. Would recommend to any full stack developer java

avicis


Didn’t know the book (exact) content prior to buying the book like with any other book. Delighted I bought it because it did cover exactly what I wanted. I love the simplicity. Just what you need – nothing else. Great Topics JWT, Spring Boot, example code. Recommend it!

Morten

Frequently Asked Questions

What happens if I buy the pocket guide and you release an update? Will I need to buy the new version, too?
No. You get free updates for life whenever new content is available.

Can I buy a print version of the pocket guide?
Yes and no. The pocket guide version here is only available in digital formats and comes with some bonuses like free lifetime updates and the exclusive Slack channel. However, there’s a print version available on Amazon - but it is updated irregularly, and you won’t retrieve the bonuses.

Do you have a return policy?
Yes, if you are not satisfied, email me within 14 days of your purchase, and I’ll refund you. I don’t ask questions; however, it would be great if you give me quality feedback so I can improve on it.

Are there any restrictions on the pocket guides?
No. I trust you to do the right thing. They are 100% DRM free.

I have another question.
No problem! Send me an email at info@codeboje.de