{"id":33067,"date":"2024-11-01T09:13:31","date_gmt":"2024-11-01T09:13:31","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=33067"},"modified":"2024-11-01T11:29:07","modified_gmt":"2024-11-01T11:29:07","slug":"spring-boot-backend-development-course-git-and-github","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/33067\/","title":{"rendered":"Spring Boot Backend Development Course, Git and GitHub"},"content":{"rendered":"<p><body><\/p>\n<p>Hello! In this tutorial, we will explore how to utilize Git and GitHub while starting Spring Boot development. Let&#8217;s understand the importance of source code management and version control, and learn how to apply them in actual projects.<\/p>\n<h2>1. What is Spring Boot?<\/h2>\n<p>Spring Boot is a sub-project of the Spring framework, which is a Java-based web application development framework, and it helps to develop web applications faster and more easily. Its main features include:<\/p>\n<ul>\n<li>Auto-configuration: Spring Boot automatically configures necessary settings without the need for the developer to define a configuration file.<\/li>\n<li>Integration with the Spring ecosystem: Spring Boot can be easily integrated with various Spring projects (Spring MVC, Spring Data, etc.).<\/li>\n<li>Standalone: It can be distributed as a standalone JAR file without requiring a separate web server when deployed on a server.<\/li>\n<\/ul>\n<h2>2. What are Git and GitHub?<\/h2>\n<h3>2.1 Git<\/h3>\n<p>Git is a distributed version control system that records the history of code changes and allows multiple developers to work simultaneously. Git has several advantages, including:<\/p>\n<ul>\n<li>Fast performance: All operations are performed locally, leading to smooth software performance.<\/li>\n<li>Small size: The size of the repository is kept small, allowing effective management of multiple versions of code.<\/li>\n<li>Distributed: Each developer&#8217;s local repository is managed independently, so it does not rely on a central server.<\/li>\n<\/ul>\n<h3>2.2 GitHub<\/h3>\n<p>GitHub is a platform that helps manage source code using Git, allowing for collaboration and public sharing. Its main features include:<\/p>\n<ul>\n<li>Code hosting: You can store and manage project code in the cloud.<\/li>\n<li>Issue tracking: It provides useful tools for tracking and managing bugs or improvement requests.<\/li>\n<li>Collaboration: It enables multiple developers to work on the same project simultaneously.<\/li>\n<\/ul>\n<h2>3. Setting up the environment<\/h2>\n<h3>3.1 Installing Java<\/h3>\n<p>To use Spring Boot, you need to install the Java Development Kit (JDK). You can install it from Oracle&#8217;s official website or OpenJDK.<\/p>\n<pre><code>sudo apt update\nsudo apt install openjdk-11-jdk\njava -version<\/code><\/pre>\n<h3>3.2 Installing Spring Boot CLI<\/h3>\n<p>Using the Spring Boot CLI (Command Line Interface), you can easily create Spring Boot applications. The installation steps are as follows:<\/p>\n<pre><code>brew tap spring-io\/tap\nbrew install springboot<\/code><\/pre>\n<h3>3.3 Installing Git<\/h3>\n<p>If Git is not yet installed, you can install it using the following command:<\/p>\n<pre><code>sudo apt install git<\/code><\/pre>\n<h3>3.4 Creating a GitHub account<\/h3>\n<p>Sign up for GitHub and create an account. Just go to the <a href=\"https:\/\/github.com\/\">official GitHub website<\/a> to sign up.<\/p>\n<h2>4. Creating a simple Spring Boot application<\/h2>\n<p>Now, let&#8217;s create a Spring Boot application. Use the following command to create a new project:<\/p>\n<pre><code>spring init --dependencies=web my-spring-boot-app<\/code><\/pre>\n<p>Once the project is created, navigate to the directory.<\/p>\n<pre><code>cd my-spring-boot-app<\/code><\/pre>\n<h3>4.1 Creating a simple REST API<\/h3>\n<p>Let&#8217;s write a simple example that provides data using a REST API in a Spring Boot application. Create a file named `src\/main\/java\/com\/example\/myapp\/MyController.java` and write the following code:<\/p>\n<pre><code>package com.example.myapp;\n\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.RestController;\n\n@RestController\npublic class MyController {\n    @GetMapping(\"\/hello\")\n    public String hello() {\n        return \"Hello, Spring Boot!\";\n    }\n}<\/code><\/pre>\n<p>Now, let&#8217;s run the application. You can execute the following command to run the application:<\/p>\n<pre><code>.\/mvnw spring-boot:run<\/code><\/pre>\n<p>After running, check the result by accessing <code>http:\/\/localhost:8080\/hello<\/code> in your web browser, where you should see the message &#8220;Hello, Spring Boot!&#8221;.<\/p>\n<h2>5. Version control using Git and GitHub<\/h2>\n<h3>5.1 Initializing Git<\/h3>\n<p>Now, let&#8217;s initialize Git in the project. Move to the project folder and enter the following command:<\/p>\n<pre><code>git init<\/code><\/pre>\n<p>Executing this command will create a <code>.git<\/code> directory in the current directory, initializing a Git repository.<\/p>\n<h3>5.2 Adding files and committing<\/h3>\n<p>Let&#8217;s add files and commit. Use the following command to add all files to the staging area:<\/p>\n<pre><code>git add .<\/code><\/pre>\n<p>Then proceed with a commit.<\/p>\n<pre><code>git commit -m \"Initial commit: Created Spring Boot application\"<\/code><\/pre>\n<h3>5.3 Creating a repository on GitHub<\/h3>\n<p>Go to GitHub and create a new repository. After creating the new repository, add the remote repository.<\/p>\n<pre><code>git remote add origin https:\/\/github.com\/username\/my-spring-boot-app.git<\/code><\/pre>\n<h3>5.4 Pushing to the remote repository<\/h3>\n<p>Now, let&#8217;s push the project to GitHub. Push using the following command:<\/p>\n<pre><code>git push -u origin master<\/code><\/pre>\n<p>Now you can check the project code on GitHub.<\/p>\n<h2>6. Utilizing GitHub for team collaboration<\/h2>\n<p>As the project grows, you will collaborate with multiple team members, and you can utilize various collaboration features of GitHub at this time. There are many features, including merge requests (Pull Requests), code reviews, and issue management.<\/p>\n<h3>6.1 Issue management<\/h3>\n<p>Create issues to manage bugs or requests. Issues allow team members to share opinions and assign tasks.<\/p>\n<h3>6.2 Code review<\/h3>\n<p>After pushing the code, you can request a review from team members. Reviews help improve code quality and receive various feedback.<\/p>\n<h3>6.3 Merge requests (Pull Request)<\/h3>\n<p>After developing a new feature, use a pull request to merge that feature into the main branch. This option allows other team members to review and approve the changes.<\/p>\n<h2>7. Conclusion<\/h2>\n<p>In this tutorial, we created a simple backend application using Spring Boot and explored source code management and collaboration methods using Git and GitHub. Through this process, we hope you gain a basic understanding of Spring Boot and Git.<\/p>\n<p>To further enhance your skills, search for additional resources and apply them to various projects. In the next tutorial, we will delve deeper into Spring Boot&#8217;s JSON processing, configuration management, and more.<\/p>\n<h2>References<\/h2>\n<ul>\n<li><a href=\"https:\/\/spring.io\/projects\/spring-boot\">Spring Boot official documentation<\/a><\/li>\n<li><a href=\"https:\/\/git-scm.com\/doc\">Git official documentation<\/a><\/li>\n<li><a href=\"https:\/\/docs.github.com\/en\">GitHub official documentation<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello! In this tutorial, we will explore how to utilize Git and GitHub while starting Spring Boot development. Let&#8217;s understand the importance of source code management and version control, and learn how to apply them in actual projects. 1. What is Spring Boot? Spring Boot is a sub-project of the Spring framework, which is a &hellip; <a href=\"https:\/\/atmokpo.com\/w\/33067\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Spring Boot Backend Development Course, Git and GitHub&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[131],"tags":[],"class_list":["post-33067","post","type-post","status-publish","format-standard","hentry","category-spring-boot-backend-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring Boot Backend Development Course, Git and GitHub - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/33067\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot Backend Development Course, Git and GitHub - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Hello! In this tutorial, we will explore how to utilize Git and GitHub while starting Spring Boot development. Let&#8217;s understand the importance of source code management and version control, and learn how to apply them in actual projects. 1. What is Spring Boot? Spring Boot is a sub-project of the Spring framework, which is a &hellip; \ub354 \ubcf4\uae30 &quot;Spring Boot Backend Development Course, Git and GitHub&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/33067\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:13:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:29:07+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/33067\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33067\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Spring Boot Backend Development Course, Git and GitHub\",\"datePublished\":\"2024-11-01T09:13:31+00:00\",\"dateModified\":\"2024-11-01T11:29:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33067\/\"},\"wordCount\":801,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Spring Boot backend development\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/33067\/\",\"url\":\"https:\/\/atmokpo.com\/w\/33067\/\",\"name\":\"Spring Boot Backend Development Course, Git and GitHub - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:13:31+00:00\",\"dateModified\":\"2024-11-01T11:29:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/33067\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/33067\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/33067\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Boot Backend Development Course, Git and GitHub\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Boot Backend Development Course, Git and GitHub - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/33067\/","og_locale":"ko_KR","og_type":"article","og_title":"Spring Boot Backend Development Course, Git and GitHub - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Hello! In this tutorial, we will explore how to utilize Git and GitHub while starting Spring Boot development. Let&#8217;s understand the importance of source code management and version control, and learn how to apply them in actual projects. 1. What is Spring Boot? Spring Boot is a sub-project of the Spring framework, which is a &hellip; \ub354 \ubcf4\uae30 \"Spring Boot Backend Development Course, Git and GitHub\"","og_url":"https:\/\/atmokpo.com\/w\/33067\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:13:31+00:00","article_modified_time":"2024-11-01T11:29:07+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/33067\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/33067\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Spring Boot Backend Development Course, Git and GitHub","datePublished":"2024-11-01T09:13:31+00:00","dateModified":"2024-11-01T11:29:07+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/33067\/"},"wordCount":801,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Spring Boot backend development"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/33067\/","url":"https:\/\/atmokpo.com\/w\/33067\/","name":"Spring Boot Backend Development Course, Git and GitHub - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:13:31+00:00","dateModified":"2024-11-01T11:29:07+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/33067\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/33067\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/33067\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Spring Boot Backend Development Course, Git and GitHub"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=33067"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33067\/revisions"}],"predecessor-version":[{"id":33068,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/33067\/revisions\/33068"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=33067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=33067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=33067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}