Episode 1, start.spring.io

Episode 1, start.spring.io

Season 4, Spring time

In order to create a real life app, we need to setup lots of tools. When you start learning all of this setup is a lot to handle. So you’ll use a tool that helps with it, called: start.spring.io

Here’s what you’ll do:

  1. Navigate to start.spring.io.
  2. Take 20 min to study what options you have, just.. click on things, read words, have good time.
  3. Now
  4. We need to set up the must have parts:
    1. Project Maven Project.
    2. Language Java.
    3. Spring Boot 2.3.1.
      • or another recent version that has only numbers and no words like M1, SNAPSHOT.
    4. Project Metadata:
      1. Group tech.becoming.
        • as you see is a domain name with words ordered backwards.
      2. Artifact file-service.
        • this is a technical name.
      3. Name File Service.
        • this is a human friendly name.
      4. Description A web service capable of managing files inside a folder and exposes a REST API.
      5. Package name tech.becoming.files.
        • here we start to organize classes in folders called “packages” and this is the root one.
      6. Packaging Jar.
        • not related to package name, this is the archive format for your application.
      7. Java 11.
        • this is the version of the Java Development Kit JDK, not the language.
        • we are going only for Long Term Support LTS ones versions.
        • here’s the list of LTSes https://adoptopenjdk.net/.
  5. Now let’s move to Dependencies.
  6. Click on “Add Dependencies” and search for: Spring Web, Spring Boot Actuator, Spring Configuration Processor.
  7. Click on Generate (or press Ctrl + Enter).
  8. You’ll be proposed to download an archive that’ll contain your the structure of your project.
  9. Then you’ll obey my friend, this archive is a good thing for your mental health.
  10. Extract the contents of the archive
    • Typically IdeaProjects