From the course: Creating a Book Search Engine from Scratch Using Java and GitHub Copilot

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Creating a hello world API

Creating a hello world API

- [Instructor] As we mentioned that we are going to use Spring Boot for creating our API project, we need to install the Spring Boot dependencies, so that we can continue to make progress in the project. Now, I've opened up the pom.xml. This is where all the dependencies must go in. This is where I'm going to show you the first use case on where GitHub Copilot could be useful. So for that, I'm going to open up chat, and I'm going to pass in the context, my question, which is, "I'm creating API based project using Spring Boot. "Help me add necessary dependencies "so that I can create APIs." And I as a hit enter, GitHub Copilot took our pom.xml as a reference, as an input, and then it created the three steps that we would need, and it created the updated pom.xml, but it did not apply the changes yet. It just showed us what it would look like. And on the right, we still have our pom.xml, and on the left is the suggestion or is the code that GitHub Copilot thinks that we would need in…

Contents