<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hanwool Seok. on Medium]]></title>
        <description><![CDATA[Stories by Hanwool Seok. on Medium]]></description>
        <link>https://medium.com/@universehan?source=rss-6b4e21c99102------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-6HwVWKatHULxyE_5K1Ghw.jpeg</url>
            <title>Stories by Hanwool Seok. on Medium</title>
            <link>https://medium.com/@universehan?source=rss-6b4e21c99102------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 08:32:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@universehan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AngularJS 라우팅은 언제 등록하는게 좋은가?]]></title>
            <link>https://medium.com/@universehan/angularjs-%EB%9D%BC%EC%9A%B0%ED%8C%85%EC%9D%80-%EC%96%B8%EC%A0%9C-%EB%93%B1%EB%A1%9D%ED%95%98%EB%8A%94%EA%B2%8C-%EC%A2%8B%EC%9D%80%EA%B0%80-143071409660?source=rss-6b4e21c99102------2</link>
            <guid isPermaLink="false">https://medium.com/p/143071409660</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[routing]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Hanwool Seok.]]></dc:creator>
            <pubDate>Thu, 25 Jan 2018 09:11:18 GMT</pubDate>
            <atom:updated>2018-01-25T09:11:18.336Z</atom:updated>
            <content:encoded><![CDATA[<p>AngularJS어플리케이션을 개발하다보면 Page라우팅을 등록해야 한다. 어떤 URL에 어떤 페이지와 컨트롤러를 로드 할지. 그런데 이 라이팅 관련된 코드를 어디에 두는게 좋을까?</p><ol><li>config에 모든 라우팅 코드를 한번에 모아둔다.</li><li>모듈별로 모와둔다.</li></ol><h4>한 곳에 라우팅 코드를 모아놓는 경우.</h4><p>이 경우는 모든 페이지의 라우팅이 한곳에 다 보여져 있어서 라우팅 코드만 몇백줄이 된다. 그래서 코드를 보기도 어렵고 라우팅 등록 코드를 수정하면 자주 충돌이 난다. 그리고 모듈과의 응집성이 떨어진다.</p><h4>모듈별로 라우팅 코드를 모아 놓는경우.</h4><p>이 경우는 라우팅 관련 코드가 단순해 진다는 장점이 있다. 하지만 단점은 어떤 라우팅이 등록되는지 알 수가 없다.</p><h4>어떻게 하는것이 좋은가?</h4><p>모듈별 config코드에 모아 놓는것은 관리가 어려운것 같고. 대충 생각해 봐서는 일단 모듈의 라우팅을 등록하는 코드는 한곳에 모아놓되. 자세한 부분은 각각 모듈별로 숨겨 놓는것이 좋을것 같은데..</p><p>고민이 필요하다..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=143071409660" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server Programming]]></title>
            <link>https://medium.com/series/server-programming-83662fd3b44c?source=rss-6b4e21c99102------2</link>
            <guid isPermaLink="false">https://medium.com/p/83662fd3b44c</guid>
            <dc:creator><![CDATA[Hanwool Seok.]]></dc:creator>
            <pubDate>Sun, 31 Dec 2017 05:08:38 GMT</pubDate>
            <atom:updated>2017-12-31T05:08:38.420Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83662fd3b44c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JDK와 함께 설치되는 것들]]></title>
            <link>https://medium.com/@universehan/jdk%EC%99%80-%ED%95%A8%EA%BB%98-%EC%84%A4%EC%B9%98%EB%90%98%EB%8A%94-%EA%B2%83%EB%93%A4-22a972d6d60a?source=rss-6b4e21c99102------2</link>
            <guid isPermaLink="false">https://medium.com/p/22a972d6d60a</guid>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Hanwool Seok.]]></dc:creator>
            <pubDate>Sat, 07 Oct 2017 04:34:16 GMT</pubDate>
            <atom:updated>2017-10-07T04:34:16.426Z</atom:updated>
            <content:encoded><![CDATA[<pre>$ sudo apt-get -d install oracle-java8-jdk </pre><p>위의 명령을 사용하여 jdk를 사용하면 다음과 같이 출력된다.</p><pre>Reading package lists... Done<br>Building dependency tree<br>Reading state information... Done<br>The following additional packages will be installed:<br>  libxi6 libxrender1 libxtst6 x11-common<br>The following NEW packages will be installed:<br>  libxi6 libxrender1 libxtst6 oracle-java8-jdk x11-common<br>0 upgraded, 5 newly installed, 0 to remove and 11 not upgraded.<br>Need to get 62.6 MB of archives.</pre><ul><li>libxi6</li><li>libxrender1</li><li>libxtst6</li><li>libxtst6 x11-common</li></ul><p>위의 것들은 무엇일까?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22a972d6d60a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does apt-get on Raspbian installs proper java package?]]></title>
            <link>https://medium.com/@universehan/how-does-apt-get-on-raspbian-installs-proper-java-package-5b86fbc8de3e?source=rss-6b4e21c99102------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b86fbc8de3e</guid>
            <category><![CDATA[raspbian]]></category>
            <category><![CDATA[jdk]]></category>
            <category><![CDATA[apt-get]]></category>
            <dc:creator><![CDATA[Hanwool Seok.]]></dc:creator>
            <pubDate>Fri, 06 Oct 2017 19:40:50 GMT</pubDate>
            <atom:updated>2017-10-07T04:38:36.358Z</atom:updated>
            <content:encoded><![CDATA[<p>How does apt-get on Raspbian installs proper java package?</p><p>라즈베리파이에서 자바 웹서버를 개발 하던 중 문득 긍금한게 하나 생겼다. <strong>어떻게 라즈비안은 apt-get 을 사용할때 적절한 java패키지를 설치하는걸까? </strong>이 포스트는 이에 대해서 내가 알게된 것들을 정리한 글이다.</p><p>라즈베리 파이에서 자바 웹서버를 개발 하려면 JDK를 설치 해야한다. 현재(2017년 10월 7일)에는 다음과 같은 간단한 명령으로 라즈베리파이에 자바를 설치 할 수 있다.</p><pre>$ sudo apt-get update &amp;&amp; sudo apt-get install oracle-java8-jdk</pre><p>나는 배포를 쉽게 하기위해서 프로젝트를 환경을 도커 이미지로 만들기로 결정했다. 이것저것 도커에 대해서 공부를 하고 실험을 하던 중 몇가지 알게된 사실이 있다.</p><ul><li>alpine linux 라는 경량화 linux라는 것이 있다. 도커 이미지 용량이 5메가 밖에 안된다.</li><li><strong>하지만 일반적인 x86계열의 시스템에서는 arm 계열의 이미지를 실행할 수 없다(</strong>즉 라즈베리파이에서는 ubuntu 도커 이미지를 실행할 수 없고, 내 컴퓨터인 mac에서는 raspbian 도커 이미지를 올릴 수 없다.)</li><li>즉 라즈베리파이의 도커 컨테이너에서는 arm용 alpine linux이미지를 실행 해야한다.</li></ul><p>성공적으로 arm용 alpine 리눅스를 설치하고 jdk를 설치하는데 문제가 발생했다. alpine 리눅스의 패키지 관리자인 apk로는 Oracle JDK를 설치 할 수 없다는 것. JDK를 설치 하려면 수동으로 다운받아서 설치해야한다. 그런데 어떤 JDK를 설치하지?</p><p>오라클 JDK다운로드 페이지에 보면 다음과 같으 다운받을 수 있는 목록이 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9GzW8qAoJI0sIZNSGa-8Q.png" /></figure><p>이걸 보고 혼란을 겪고나니 궁금증이 생겼다. 라즈베리 파이는 어떤 JDK를 사용할까? 어떻게 사용하는 JDK를 결정할까?</p><h4>Apt-get이 패키지를 얻는 방법</h4><p>apt-get 메뉴얼을 보면 다음과 같이 나와 있다.</p><blockquote>APT uses a file that lists the ‘sources’ from which packages can be obtained. This file is /etc/apt/sources.list.</blockquote><blockquote>APT는 패키지들을 얻을 수 있는 ‘소스’들을 나열하는 파일을 사용한다. 그 파일은 /etc/apt/sources.list 이다.</blockquote><p>그리고 라즈비안의 /etc/apt/sources.list파일을 열어 보았다.</p><pre><strong>$</strong> cat /etc/apt/sources.list<br>deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi<br># Uncomment line below then &#39;apt-get update&#39; to enable &#39;apt-get source&#39;<br>#deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi</pre><p>메뉴얼에 의하면 데비안의 기본 source.list는 다음과 같다고 한다.</p><pre># See sources.list(5) for more information, especially<br># Remember that you can only use http, ftp or file URIs<br># CDROMs are managed through the apt-cdrom tool.<br>deb http://http.us.debian.org/debian stable main contrib non-free<br>deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free<br>deb http://security.debian.org stable/updates main contrib non-free<br>     <br># Uncomment if you want the apt-get source function to work<br>#deb-src http://http.us.debian.org/debian stable main contrib non-free<br>#deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free</pre><p>즉 라즈비안의 데비안의 기본 패키지 저장소를 사용하지 않고 별도의 패키지 저장소를 사용하고있다. 이곳에서 Arm32용 JDK를 사용하게 되어있다.</p><p>다음 명령어를 사용해서 인스톨을 해보면 어떤 경로를 통해서 파일이 받아지는지 볼 수 있다.</p><pre>$ sudo apt-get install oracle-java8-jdk<br>Reading package lists... Done<br>Building dependency tree<br>Reading state information... Done</pre><pre>...</pre><pre>Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libxi6 armhf 2:1.7.9-1 [77.8 kB]<br>Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libxrender1 armhf 1:0.9.10-1 [29.9 kB]<br>Get:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf x11-common all 1:7.7+19 [251 kB]<br>Get:4 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libxtst6 armhf 2:1.2.3-1 [26.3 kB]<br>Get:5 http://archive.raspberrypi.org/debian stretch/main armhf oracle-java8-jdk armhf 8u65 [62.2 MB]<br>66% [5 oracle-java8-jdk 39.1 MB/62.2 MB 63%]</pre><p>의존 모듈들인 libxi6, libxrender1, x11-common, libxtst6들은 <a href="http://mirrordirector.raspbian.org/raspbian">http://mirrordirector.raspbian.org/raspbian</a> 저장소의 stretch/main armhf 섹션에서 받아진다.</p><p>하지만 jdk는 <a href="http://archive.raspberrypi.org/debian">http://archive.raspberrypi.org/debian</a> 저장소의 stretch/main armhf 에서 받아지는것을 볼 수 있다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b86fbc8de3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring + Angular Web App on Raspberry pi]]></title>
            <link>https://medium.com/@universehan/spring-angular-web-app-on-raspberry-pi-e09a5e120706?source=rss-6b4e21c99102------2</link>
            <guid isPermaLink="false">https://medium.com/p/e09a5e120706</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[spring]]></category>
            <dc:creator><![CDATA[Hanwool Seok.]]></dc:creator>
            <pubDate>Tue, 03 Oct 2017 15:14:05 GMT</pubDate>
            <atom:updated>2017-10-06T08:27:23.614Z</atom:updated>
            <content:encoded><![CDATA[<p>Spring + Angular Web App on Raspberry pi</p><p>나는 항상 내 웹사이트를 만들고 싶었다. 하지만 웹사이트를 만들려고 하면 생각보다 해야할 것이 많다. 서버도 있어야 하고, 서버에 접근이 가능하게 설정도 해야하고 개발도 해야하고. 맨날 생각만 하고 만들지 못하고 있었는데 집에 놀고 있는 라즈베리 파이 3를 가지고 만들어 보기로 하였다.</p><p>여기서는 내가 라즈베리 파이에 StringBoot 와 angular4를 이용하여서 웹사이트를 개발하는 과정을 정리해 보았다. 우선 프로젝트 자체가 실제 계속 개발을 해 나갈 것이기 때문에 GitRepository를 설정하고, Backend를 먼저 간단하게 개발했다. 그 다음개발한 서버를 항상 동작하게 하기위해서 서비스로 등록하였다. Front-End 는 angular4를 사용하였고 SrpingBoot 프로젝트와 같이 빌드할 될 수 있게 설정하였다.</p><h4>개발 환경</h4><p>서버 : Raspberry Pi 3<br>OS : Raspbian<br>Back-end : Java, SpringBoot<br>Font-end : TypeScript, Angular4<br>Tool : bash, nano, etc</p><p>Spring Boot를 시작하기 위해서 알아야 할 것들</p><ul><li>어떻게 빌드 할 것인가?</li><li>개발 중에 테스트는 어떻게 할 것인가?</li><li>디버깅은 어떻게 할 것인가?</li><li>실제 서버에 어떻게 배포할 것인가?</li></ul><p>스프링 부트에서만 적용되는 이야기는 아니지만 실제로 내가 만든 프로그램을 구동하려면 몇가지 안계가 필요하다.</p><ul><li>코딩하기</li><li>빌드하기</li><li>실행하기</li></ul><h3>프로젝트 설정</h3><h4>프로젝트 디렉토리 생성</h4><p>우선 프로젝트 디렉토리를 생성하고 해당 디렉토리로 이동</p><pre>mkdir universehan<br>cd universehan</pre><h4>코드 저장소 설정</h4><p>그 다음 github같은 곳에 저장소를 만들고 생성한 디렉토리와 연결을 한다. 아직 아무것도 연결 되어 있지 않으므로 remote를 하나 추가한다.</p><pre>git remote add origin https://github.com/UniverseHan/universehan.git</pre><p>그 다음 upstream 설정</p><pre>fetch<br>git branch --set-upstream-to=origin/master master<br>git pull</pre><p>이렇게 첫 저장소 설정을 완료.</p><h3>백 앤드 개발하기</h3><h4>Java 설치하기</h4><p>Spring은 자바로 개발된 프레임 워크다 그렇기 때문에 자바를 Linux환경에 자바를 설치해야 한다. 이미 설치되어 있다면 이 단계를 건너뛰자. 설치 방법은 <a href="https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/#">여기</a>를 참고 하였다.</p><pre>$ sudo add-apt-repository ppa:webupd8team/java<br>$ sudo apt-get update<br>$ sudo apt-get install oracle-java8-installer</pre><p>설치가 잘 되었는지 확인</p><pre>$ java -version<br>java version &quot;1.8.0_65&quot;<br>Java(TM) SE Runtime Environment (build 1.8.0_65-b17)<br>Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)</pre><p>잘 설치 되었다.</p><h4>Gradle 빌드 툴 설치</h4><p>코딩을 하기에 앞서 우리의 프로젝트를 빌드 할 방법을 결정 하여야 한다. 빌드를 하기위해서는 아래와 같은 몇 가지 방법이 있다.</p><ul><li>java 명령어를 이용하는 방법</li><li>ant를 이용한 방법</li><li>maven을 이용하는 방법</li><li>gradle을 이용하는 방법</li><li>위에 어떤걸 사용하는지는 모르겠으나 IDE를 이용하는 방법</li></ul><p>나는 Gradle을 사용하기로 했다. 자세한 설치 하는 방법은 <a href="https://gradle.org/install/">여기</a> 참조.</p><p>Gradle설치가 끝났으면 path에 추가를 해주어야 하는데 나같은 리눅스 초보는 이 path를 어디에 추가해 주어야 하는지도 알 수가 없었다. 보통 구글링을 해보면 .bashrc 에 추가하기도 하고 기타 여러곳에 추가를 하기도 하는데 보통 어디에 하는게 맞는건지 잘 알 수가 없었다.</p><p>그래서 데비안 메뉴얼이랑 라즈베리 파이 공식 홈페이지를 뒤졌는데 라즈베리 파이 공식홈에 나온 간단한 리눅스 설명서를 보는게 일단은 이해하기도 쉽고 분량도 적으니 이것을 보기로 결정. 링크는 <a href="https://www.raspberrypi.org/documentation/linux/usage/bashrc.md">여기</a>를 참조. .bashrc에 추가 하기로 결정</p><pre>$ cd ~<br>$ nano .bashrc</pre><p>파일 끝 자락 어딘가 쯤에 다음 명령어 추가.</p><pre>export PATH=$PATH:/opt/gradle/gradle-4.2/bin</pre><p>저장 후 종료한 뒤에 bash 초기화 source ~/.bashrc 나exec bash 둘다 사용할 수 있지만 후자를 사용 하기로 결정. 이 둘의 차이는 앞에서 링크한 메뉴얼을 참조.</p><pre>$ exec bash</pre><p>마지막으로 잘 설치 되었는지 확인</p><pre>$ gradle -v<br><br>------------------------------------------------------------<br>Gradle 4.2<br>------------------------------------------------------------</pre><p>이렇게 하여 스프링을 빌드할 준비가 다 되었다.</p><h4>빌드 스크립트 작성</h4><p>이제 빌드 환경 설정을 끝냈으니 실제로 코딩을 시작해 보자. 우선 프로젝트 루트 폴더에 build.gradle 파일을 작성한다.</p><pre>$ nano build.gradle</pre><p>아래의 내용을 작성한다.</p><pre>buildscript {<br>    repositories {<br>        mavenCentral()<br>    }<br>    dependencies {<br>        classpath(&quot;org.springframework.boot:spring-boot-gradle-plugin:1.5.7.RELEASE&quot;)<br>    }<br>}<br><br>apply plugin: &#39;java&#39;<br>apply plugin: &#39;org.springframework.boot&#39;<br><br>jar {<br>    baseName = &#39;universehan-web&#39;<br>    version =  &#39;0.1.0&#39;<br>}<br><br>repositories {<br>    mavenCentral()<br>}<br><br>dependencies {<br>    compile(&quot;org.springframework.boot:spring-boot-starter-web&quot;)<br>    testCompile(&#39;org.springframework.boot:spring-boot-starter-test&#39;)<br>}</pre><p>파일이 잘 만들어 졌는지 확인</p><pre>$ ls</pre><pre>build.gradle</pre><pre>$</pre><p>이제 빌드를 해보자.</p><pre>$ gradle build</pre><p>결과는 다음과 같이 나온다(다르게 나올 수도 있음)</p><pre>:compileJava NO-SOURCE<br>:processResources NO-SOURCE<br>:classes UP-TO-DATE<br>:findMainClass<br>:jar<br>:bootRepackage FAILED</pre><pre>FAILURE: Build failed with an exception.</pre><pre>* What went wrong:<br>Execution failed for task &#39;:bootRepackage&#39;.<br>&gt; Unable to find main class</pre><p>일단 Gradle build는 잘 실행 되는것 같다. bootRepackage 에러가 나는데 main class를 찾을 수 없다고 나온다.</p><h4>서버 코드 작성</h4><p>가장 간단한 메인 클래스를 만들어 보자.</p><p>{프로젝트 루트}/src/main/java/universehan/Application.java 파일을 추가한다.</p><pre>package universehan;</pre><pre>import org.springframework.boot.SpringApplication;<br>import org.springframework.boot.autoconfigure.SpringBootApplication;</pre><pre>@SpringBootApplication<br>public class Application {<br>  public static void main(String[] args) {<br>    SpringApplication.run(Application.class, args);<br>  }<br>}</pre><p>이제 다시 빌드명령을 실행 하면 빌드가 성공한다.</p><pre>:compileJava<br>:processResources NO-SOURCE</pre><pre>...</pre><pre>BUILD SUCCESSFUL in 9s<br>4 actionable tasks: 4 executed</pre><p>이제 메인 클래스를 만들었으니 가장 간단한 컨트롤러를 만들어 보자. {ProjectRoot}/src/main/java/universehan/GreetingController.java 를 추가하고 아래의 코드를 작성한다.</p><pre>package universehan;</pre><pre>import org.springframework.web.bind.annotation.RequestMapping;<br>import org.springframework.web.bind.annotation.RestController;</pre><pre>@RestController<br>public class GreetingController {<br>  @RequestMapping(&quot;/greeting&quot;)<br>  public String greeting() {<br>    return &quot;Hello Boot&quot;;<br>  }<br>}</pre><p>저장 하고 다시 빌드.</p><pre>$ gradle build</pre><pre>...</pre><pre>BUILD SUCCESSFUL in 6s<br>4 actionable tasks: 4 executed</pre><p>성공이다.</p><h4>SrpingBoot Application 실행하기</h4><p>이제 간단히 실행을 해보자. Gradle을 사용한 스프링 부트의 실행은 <a href="https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using-boot-running-with-the-gradle-plugin">여기</a> 에서 참고하였다.</p><pre>$ gradle bootRun</pre><pre>:compileJava UP-TO-DATE<br>:processResources NO-SOURCE<br>:classes UP-TO-DATE<br>:findMainClass<br>:bootRun</pre><pre>  .   ____          _            __ _ _<br> /\\ / ___&#39;_ __ _ _(_)_ __  __ _ \ \ \ \<br>( ( )\___ | &#39;_ | &#39;_| | &#39;_ \/ _` | \ \ \ \<br> \\/  ___)| |_)| | | | | || (_| |  ) ) ) )<br>  &#39;  |____| .__|_| |_|_| |_\__, | / / / /<br> =========|_|==============|___/=/_/_/_/<br>:: Spring Boot ::        (v1.5.7.RELEASE)</pre><pre>2017-10-04 14:21:13.441  INFO 2279 --- [           main] universehan.Application</pre><pre>...</pre><pre>: Tomcat started on port(s): 8080 (http)<br>2017-10-04 14:21:21.658  INFO 2279 --- [           main] universehan.Application</pre><p>스프링 부트가 성공 적으로 실행 되었다. 브라우저에서 해당 주소로 접속하면 Hello Boot라는 메시지를 볼 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQR42FBbibRIC_9JuDw9ZA.png" /><figcaption>브라우저에서 접속한 모습</figcaption></figure><p>성공이다!!</p><h4>Background Service 로 등록하기</h4><p>위와 같이 gradle명령으로 실행하게 되면 쉘을 더이상 사용할 수가 없다. 그리고 ctl + c명령으로 명령을 정지하면 서버 역시 정지하여 버린다. 백그라운드 에서 서버가 항상 동작하게 하려면 서비스로 등록해야 한다. 나는 systemd unit을 등록하는 방법을 사용하였다.</p><p>jar파일을 서비스로 등록 하려면 다음의 문서를 참조</p><p><a href="https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html#deployment-systemd-service">59. Installing Spring Boot applications</a></p><p>리눅스에서 서비스를 실행 하고 상태를 확인 하는 방법</p><p><a href="https://support.rackspace.com/how-to/checking-running-services-on-linux/">Check running services on Linux</a></p><h3>프론트 앤드 개발하기</h3><p>프론트 앤드는 Angular4, React, Vue.js 중 Angular4를 선택하였다.</p><h4>NodeJS설치</h4><p>nvm 설치, node 설치</p><h4>Angular설치</h4><h4>스프링 부트에서 Angular 설정하기</h4><p>Angular4의 경우 ng new app형식의 명령을 사용하면 금방 생성 되지만 스프링 프로젝트 디렉터리 안으로 넣으려면 약간의 과정이 필요하다 그 과정은 다음의 링크에 설명이 되어 있다.</p><p><a href="http://www.umeshmorsu.com/2017/04/28/spring-boot-and-angular-cli-example/">Spring Boot and Angular CLI example: Getting Started</a></p><p>스프링 부트 Gradle Plugin에 대한 자세한 설명은 다음에서</p><p><a href="https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-gradle-plugin.html">67. Spring Boot Gradle plugin</a></p><p>초 간단 Angular4 시작하기는</p><p><a href="https://angular.io/guide/quickstart">Angular</a></p><p>배포 버젼으로 빌드를 하려면 단순히 gradle build명령을 실행 하면 된다. 가끔 gradle node모듈 설정이 바로 적용이 안될 수 있는데 이 경우는 gradle clean을 먼저 실행 한 뒤 gradle build를 수행하면 된다.</p><h3>스프링 어플 설치하기</h3><p><a href="https://docs.spring.io/spring-boot/docs/1.5.7.RELEASE/reference/htmlsingle/#deployment-install">https://docs.spring.io/spring-boot/docs/1.5.7.RELEASE/reference/htmlsingle/#deployment-install</a></p><h3>배포 자동화 설정하기</h3><p>배포 자동화 설정 하는 방법을 적어보자</p><p>Docker for raspberry pi</p><p><a href="https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/">https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/</a></p><p><a href="https://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/">https://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/</a></p><p>개발 언어별 도커 가이드 :</p><p><a href="https://docs.docker.com/develop/">Develop with Docker</a></p><h3>References</h3><p>라즈비안 리눅스 디렉토리 구조 : <a href="https://wiki.debian.org/FilesystemHierarchyStandard">https://wiki.debian.org/FilesystemHierarchyStandard</a></p><p>라즈베리 파이 리눅스 간단 메뉴얼 모음 : <a href="https://www.raspberrypi.org/documentation/">https://www.raspberrypi.org/documentation/</a></p><p>스프링 부트 시스템 서비스로 등록하는 방법들 : <a href="http://www.baeldung.com/spring-boot-app-as-a-service">http://www.baeldung.com/spring-boot-app-as-a-service</a></p><p>리눅스 파일 스시템 구조 설명 : <a href="http://www.thegeekstuff.com/2010/09/linux-file-system-structure/?utm_source=tuicool">http://www.thegeekstuff.com/2010/09/linux-file-system-structure/?utm_source=tuicool</a></p><p>라즈베리 파이 설명서 : <a href="https://www.raspberrypi.org/documentation/usage/">https://www.raspberrypi.org/documentation/usage/</a></p><p>데비안 서버 관리자 메뉴얼 : <a href="https://debian-handbook.info/browse/stable/">https://debian-handbook.info/browse/stable/</a></p><p>angular 공식 사이트 : <a href="https://angularjs.org/">https://angularjs.org/</a></p><p>wget 사용법 : <a href="https://www.gnu.org/software/wget/manual/wget.html">https://www.gnu.org/software/wget/manual/wget.html</a></p><p>vi 간단 사용법 : <a href="https://wiki.kldp.org/KoreanDoc/html/Vim_Guide-KLDP/Vim_Guide-KLDP.html">https://wiki.kldp.org/KoreanDoc/html/Vim_Guide-KLDP/Vim_Guide-KLDP.html</a></p><p>스프링을 사용해서 REST API서버 만들기 : <a href="https://spring.io/guides/gs/rest-service/">https://spring.io/guides/gs/rest-service/</a></p><p>그래들 설치 방법 : <a href="https://gradle.org/install/">https://gradle.org/install/</a></p><p>자바 설치 방법 :</p><ul><li><a href="https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/#">https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/#</a></li><li><a href="https://www.raspberrypi.org/blog/oracle-java-on-raspberry-pi/">https://www.raspberrypi.org/blog/oracle-java-on-raspberry-pi/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e09a5e120706" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[위의 내용은 전자기학 제일 첫 부분에서 전하의 존재와 전하로부터 발생되는 현상들을 설명하면서 나온 부분이다.]]></title>
            <link>https://medium.com/@universehan/%EC%9C%84%EC%9D%98-%EB%82%B4%EC%9A%A9%EC%9D%80-%EC%A0%84%EC%9E%90%EA%B8%B0%ED%95%99-%EC%A0%9C%EC%9D%BC-%EC%B2%AB-%EB%B6%80%EB%B6%84%EC%97%90%EC%84%9C-%EC%A0%84%ED%95%98%EC%9D%98-%EC%A1%B4%EC%9E%AC%EC%99%80-%EC%A0%84%ED%95%98%EB%A1%9C%EB%B6%80%ED%84%B0-%EB%B0%9C%EC%83%9D%EB%90%98%EB%8A%94-%ED%98%84%EC%83%81%EB%93%A4%EC%9D%84-%EC%84%A4%EB%AA%85%ED%95%98%EB%A9%B4%EC%84%9C-%EB%82%98%EC%98%A8-%EB%B6%80%EB%B6%84%EC%9D%B4%EB%8B%A4-a5a6fb082f80?source=rss-6b4e21c99102------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5a6fb082f80</guid>
            <dc:creator><![CDATA[Hanwool Seok.]]></dc:creator>
            <pubDate>Wed, 10 May 2017 09:55:32 GMT</pubDate>
            <atom:updated>2017-05-10T09:55:32.695Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>시간에 따라 변하는 전기장은 자기장을 동반하며, 시간에 따라 변하는 자기장 역시 전기장을 동반한다.</blockquote><p>위의 내용은 전자기학 제일 첫 부분에서 전하의 존재와 전하로부터 발생되는 현상들을 설명하면서 나온 부분이다.</p><p>내용이 아직 잘 이해가 가지 않는데 이해가 가면 내가 이해한 바를. 글로 작성해야겠다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5a6fb082f80" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>