How to start writing Angular & Spring Applications

A quick guide to getting started with Spring Boot & Angular 4

If your story reads anything like mine this is going to be an exciting post. I have worked with Angular JS 1.x in both projects and large scale projects at work. I honestly liked the framework but always felt that it was a bit too boilerplate and complex.

Do More with Angular & Spring Boot

Now that Angular 2, and subsequently Angular 4 has been released I have spent the last few months catching up. If you ever felt like I did towards Angular 1.x I am here to tell you that it is time to give Angular another look. 

I absolutely love building Angular 2 & Spring Applications and in this article, I am going to give you some resources to help kick start your journey. 

Getting Started with Angular and Spring Boot

We are going to walk through some basics and give you lots of resources to start looking into. At the end of this article, you will find a screencast I did where I walk through a simple Tasks application written in Spring Boot & Angular. If you want to check out the source code for this application you can grab it here

Spring Boot

Any great modern application is going to need a proven application framework on the back end. Spring Boot is an amazing project that helps us quickly get our Spring Framework Applications up and running. 

In our case, we will use the Spring Initializr to help bootstrap our application. We can do this right in our favorite IDE or directly from the website. In Spring we are going to create a REST Controller that can handle a call from our Angular application. 

This controller will accept a GET request and return to it a list of Tasks. 

This will call a service and repository that will fetch our 4 tasks from the database. We are going to load our initial data by using a Command Line Runner. 

There is a little more going on but that is essentially our back end service. If you want to learn more about Spring Boot please check out some of these resources. 

Spring Boot Resources

Angular 2/4

The first thing you need to know is that Angular 1/2/4 JS is just going by Angular these days. So when I refer to the newest version of Angular from now on, I will just be calling it Angular. 

As I said before I was never a huge fan of previous versions of Angular. With the new releases, writing components in TypeScript and the Angular CLI this is really a development cycle I can get behind. 

The 1st thing I would do is work on getting the Angular CLI installed and your local development environment up and running. From there you can generate your first component. Everything is component based in Angular and here is my TypeScript component that I really enjoyed writing. 

I simply can’t teach you everything you need to know about Angular in this blog post and that is the reason I being pretty vague here. I am going to leave you with some resources and my screencast below but please feel free to ask any questions you have. 

Angular Resources

Spring Boot & Angular Tasks Application

Upcoming Course

I am currently working on a course that teaches you all about Spring Boot & Angular 4 development. We will show you how to get started and what it takes to build these projects from scratch. Then we will walk through an even better way to rapidly develop these applications so you can focus on writing business logic and not boilerplate code. 

If you’re interested in learning more please head over to the course page and signup for free. 

Question: What are your biggest challenges in developing Spring Boot & Angular applications? 

Hi, I’m Dan Vega. I am a Software Engineer living just outside of one of my favorite places in the world, Cleveland Ohio. I am a self-taught programmer who firmly believes that you can accomplish anything in this life if you put your mind to it, roll up your sleeves and are willing to put in the work.

I have been writing software for over 17+ years now and I use my knowledge, passion, and influence to help other developers achieve their goals. I teach online and currently, have over 22,000 students.

When I am not writing software I have a number of things that really keep me busy. I love to read books, listen to podcasts and watch online courses. I have a real thirst for knowledge and it consumes me every single day of the week. I also love to run & lift heavy weights which keep me balanced throughout the week.

Please note: I reserve the right to delete comments that are offensive or off-topic.