<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>맛집도 좋고 개발도 좋고~</title>
<link>https://nolran.tistory.com/</link>
<description>현재 CookApps 에서 서버 개발을 맡고 있는 프로그래머 입니다.
iOS, Android, PHP, HTML5 관심 많습니다.
맛집 가는거 좋아합니다. =)
잘못된 정보가 있다면 수정요청 해주세요.
도움 되셨다면 댓글은 미덕... -_-</description>
<language>ko</language>
<pubDate>Sun, 14 Jun 2020 02:15:05 +0900</pubDate>
<generator>TISTORY</generator>
<ttl>100</ttl>
<managingEditor>놀란</managingEditor>
<image>
<title>맛집도 좋고 개발도 좋고~</title>
<url>http://cfile28.uf.tistory.com/image/187FBD104B08F3C25DAD77</url>
<link>https://nolran.tistory.com</link>
<description>현재 CookApps 에서 서버 개발을 맡고 있는 프로그래머 입니다.
iOS, Android, PHP, HTML5 관심 많습니다.
맛집 가는거 좋아합니다. =)
잘못된 정보가 있다면 수정요청 해주세요.
도움 되셨다면 댓글은 미덕... -_-</description>
</image>
<item>
<title>[svn] ATTENTION!  Your password for authentication realm - yes 안 먹을 때</title>
<link>https://nolran.tistory.com/78</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;-----------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;ATTENTION! &amp;nbsp;Your password for authentication realm:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;lt;svn://svn주소...&amp;gt; 프로젝트명&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;can only be stored to disk unencrypted! &amp;nbsp;You are advised to configure&lt;/p&gt;&lt;p&gt;your system so that Subversion can store passwords encrypted, if&lt;/p&gt;&lt;p&gt;possible. &amp;nbsp;See the documentation for details.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;You can avoid future appearances of this warning by setting the value&lt;/p&gt;&lt;p&gt;of the 'store-plaintext-passwords' option to either 'yes' or 'no' in&lt;/p&gt;&lt;p&gt;'/home/계정명/.subversion/servers'.&lt;/p&gt;&lt;p&gt;-----------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;Store password unencrypted (yes/no)?&lt;/p&gt;&lt;p&gt;svn checkout 을 할 때 위와 같은 메시지가 나와도 yes / no 중에 yes 룰 써도 계속 같은 질문 하는 버그가 있음.&lt;/p&gt;&lt;p&gt;한글로 '예' 를 치면 해결 된다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;아놔.&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/78&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Dev 기타</category>
<category>dev</category>
<category>Developer</category>
<category>git</category>
<category>program</category>
<category>source version</category>
<category>svn</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/78</guid>
<comments>https://nolran.tistory.com/78#entry78comment</comments>
<pubDate>Mon, 12 Jan 2015 14:27:20 +0900</pubDate>
</item>
<item>
<title>[CodeIgniter] 크롬(Chrome) 에서 세션이 계속 사라지는 현상</title>
<link>https://nolran.tistory.com/77</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;하도 어이가 없어서...&lt;/p&gt;
&lt;p&gt;PHP / CodeIgniter 사용 중인데...&lt;/p&gt;
&lt;p&gt;사파리나 다른 브라우져에서는 문제가 없었는데, 크롬에서만 세션을 만들어도 계속 해서 사라지는 현상이 발생했습니다.&lt;/p&gt;
&lt;p&gt;아무리 뒤져도 제대로 된 답변을 얻지 못하다 어디선가 얻은 팁입니다.&lt;/p&gt;
&lt;p&gt;

CI 설정인 config.php 을 열어보면 Session Variables 설정 부분이 있습니다.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre name=&quot;code&quot; class=&quot;PHP&quot;&gt;

//$config['sess_cookie_name']		= 'ci_session';
$config['sess_cookie_name']		= 'TC_session';

&lt;/pre&gt;
&lt;p&gt;위와 같이 ci_session 부분의 쿠키 이름값을 다른 값으로 바꿔보시면 됩니다.&lt;/p&gt;
&lt;p&gt;(그래도 안되면 언더바(_)를 사용하지 말아보세요.)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/77&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>PHP</category>
<category>CI</category>
<category>CodeIgniter</category>
<category>php</category>
<category>Session</category>
<category>세션</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/77</guid>
<comments>https://nolran.tistory.com/77#entry77comment</comments>
<pubDate>Wed, 23 Apr 2014 17:34:55 +0900</pubDate>
</item>
<item>
<title>[Git] git 프로젝트 export 하기</title>
<link>https://nolran.tistory.com/76</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;Git 으로 작업한 뒤에 git 관련 파일을 제외하고 순수 소스 파일만 필요할 때가 있다.&lt;/p&gt;&lt;p&gt;기존의 export 기능인데, git 에서는 아래와 같은 명령어를 사용하면 된다.&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border: 3px double rgb(203, 203, 203); background-color: rgb(255, 255, 255); padding: 10px; &quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; &quot;&gt;git archive --format zip --output out&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; &quot;&gt;.zip master&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;이와 같이 하면 해당 디렉토리에 out.zip 으로 압축되어 저장 된다.&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/76&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Dev 기타</category>
<category>Archive</category>
<category>Export</category>
<category>git</category>
<category>svn</category>
<category>Version</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/76</guid>
<comments>https://nolran.tistory.com/76#entry76comment</comments>
<pubDate>Fri, 04 Oct 2013 11:35:21 +0900</pubDate>
</item>
<item>
<title>[Node.js] WebStorm Tool 소개</title>
<link>https://nolran.tistory.com/75</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;node.js 애플리케이션을 만들기 IDE 툴로 가장 편하다는 webstorm 입니다.&lt;/p&gt;&lt;p&gt;프로젝트를 하나 만들어 보는 과정을 캡쳐해봤습니다.&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none; &quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display:inline-block;width:683px;;height:auto;max-width:100%&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/226FAA3A524116063C&quot; filemime=&quot;image/jpeg&quot; filename=&quot;JetBrains WebStorm 2013-09-24 12-59-21.jpg&quot; height=&quot;506&quot; style=&quot;&quot; width=&quot;683&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none; &quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display:inline-block;width:683px;;height:auto;max-width:100%&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/257E163A5241160736&quot; filemime=&quot;image/jpeg&quot; filename=&quot;Create New Project 2013-09-24 13-01-33.jpg&quot; height=&quot;511&quot; style=&quot;&quot; width=&quot;683&quot;/&gt;&lt;span class=&quot;cap1&quot; style=&quot;display:block;max-width:100%;width:683px;&quot;&gt;firstNodeProjcet 이름으로 만들었습니다. express 프레임워크 사용을 옵션으로 설정 합니다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none; &quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display:inline-block;width:382px;;height:auto;max-width:100%&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/23323F3A524116071B&quot; filemime=&quot;image/jpeg&quot; filename=&quot;Node.js Express App 2013-09-24 13-02-12.jpg&quot; height=&quot;318&quot; style=&quot;&quot; width=&quot;382&quot;/&gt;&lt;span class=&quot;cap1&quot; style=&quot;display:block;max-width:100%;width:382px;&quot;&gt;템플릿 엔진과 CSS 엔진을 선택할 수 있습니다. 주로 쓰는 Jade 나 ejs 를 사용하면 되겠습니다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none; &quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display:inline-block;width:447px;;height:auto;max-width:100%&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/274E173A524116080C&quot; filemime=&quot;image/jpeg&quot; filename=&quot;Setting up Node.js v0.10.18 Core Modules Sources 2013-09-24 13-31-32.jpg&quot; height=&quot;231&quot; style=&quot;&quot; width=&quot;447&quot;/&gt;&lt;span class=&quot;cap1&quot; style=&quot;display:block;max-width:100%;width:447px;&quot;&gt;node.js core 모듈을 가져오는 방법을 선택합니다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none; &quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display:inline-block;width:683px;;height:auto;max-width:100%&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2159BF3A5241160806&quot; filemime=&quot;image/jpeg&quot; filename=&quot;firstNodeProject - [:Volumes:DATA:Source:WiseKids_Local:node:firstNodeProject] 2013-09-24 13-31-59.jpg&quot; height=&quot;671&quot; style=&quot;&quot; width=&quot;683&quot;/&gt;&lt;span class=&quot;cap1&quot; style=&quot;display:block;max-width:100%;width:683px;&quot;&gt;프로젝트를 생성한 결과 화면 입니다. express 모듈과 core 모듈 등이 디렉토리로 정리되어 보입니다.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/75&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Node.js</category>
<category>express</category>
<category>HTML</category>
<category>JavaScript</category>
<category>node.js</category>
<category>webstorm</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/75</guid>
<comments>https://nolran.tistory.com/75#entry75comment</comments>
<pubDate>Tue, 24 Sep 2013 11:42:47 +0900</pubDate>
</item>
<item>
<title>[Node.js] express 프레임워크</title>
<link>https://nolran.tistory.com/74</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;express 프레임워크는 express 모듈로 만든 프레임워크입니다.&lt;/p&gt;&lt;p&gt;express 프레임워크는 프로젝트를 손쉽게 만들어주며 기본적인 뷰 지원과 세션 지원을 합니다.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; &quot;&gt;&lt;b&gt;설치&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;sudo npm install -g express&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; &quot;&gt;프로젝트 생성&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;express HelloExpress(프로젝트명)&lt;/p&gt;&lt;p&gt;cd HelloExpress &amp;amp;&amp;amp; npm install (express 프레임워크와 관련된 모듈 설치)&lt;/p&gt;&lt;p&gt;&amp;nbsp;- npm install 만으로 필요 모듈 설치할 수 있는 것은 HelloExpress 디렉토리 안에 package.json 때문입니다.&amp;nbsp;(파일내 구성이 있음)&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; &quot;&gt;&lt;b&gt;프로젝트 실행&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;node app (app.js 파일이 기본 실행 파일)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/74&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Node.js</category>
<category>express</category>
<category>framework</category>
<category>JavaScript</category>
<category>node.js</category>
<category>V8</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/74</guid>
<comments>https://nolran.tistory.com/74#entry74comment</comments>
<pubDate>Tue, 24 Sep 2013 11:41:56 +0900</pubDate>
</item>
<item>
<title>[Node.js] express 모듈</title>
<link>https://nolran.tistory.com/73</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt; &quot;&gt;&lt;b&gt;설치&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;npm install express&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; &quot;&gt;기본 서버 생성 및 실행&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;textarea name=&quot;code&quot; class=&quot;javascript&quot;&gt;// 모듈을 추출합니다.
var http = require('http');
var express = require('express');

// 서버를 생성합니다.
var app = express();

// request 이벤트 리스너를 설정합니다.
app.use(function (request, response) {
    response.writeHead(200, { 'Content-Type': 'text/html' });
    response.end('&amp;lt;h1&amp;gt;Hello express&amp;lt;/h1&amp;gt;');
});

// 서버를 실행합니다.
http.createServer(app).listen(52273, function () {
    console.log('Server running at http://127.0.0.1:52273');
});
&lt;/textarea&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;express 모듈은 http 모듈처럼 사용할 수 있지만 훨씬 많은 기능을 가지고 있습니다.&lt;/p&gt;&lt;p&gt;기본 응답 메서드&lt;/p&gt;&lt;p&gt;response 객체&lt;/p&gt;&lt;p&gt;response.send() - 매개변수의 자료형에 따라 적절한 형태로 응답합니다.&lt;/p&gt;&lt;p&gt;&amp;nbsp;- HTML, JSON, Array&lt;/p&gt;&lt;p&gt;response.json() - JSON 형태로 응답합니다.&lt;/p&gt;&lt;p&gt;response.jsonp() - JSONP 형태로 응답합니다.&lt;/p&gt;&lt;p&gt;response.redirect() - 웹 페이지 경로를 강제로 이동합니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;textarea name=&quot;code&quot; class=&quot;javascript&quot;&gt;// request 이벤트 리스너를 설정합니다.
app.use(function (request, response) {
    // 데이터를 생성합니다.
    var output = [];
    for (var i = 0; i &amp;lt; 3; i++) {
        output.push({
            count: i,
            name: 'name - ' + i
        })
    }

    // 응답합니다.
    response.send(output);
});
&lt;/textarea&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt; &quot;&gt;미들웨어&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;http 모듈과 express 모듈로 만든 서버의 차이점은 use() 메서드를 사용한다는 것&lt;/div&gt;&lt;div&gt;use() 메서드는 여러번 사용 가능&lt;/div&gt;&lt;div&gt;use() 메서드를 사용하여 다양한 미들웨어&amp;nbsp;모듈을 사용하게 설정할 수 있습니다.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;express 모듈의 미들웨어&lt;/div&gt;&lt;ul style=&quot;list-style-type: square; &quot;&gt;&lt;li&gt;logger&lt;/li&gt;&lt;li&gt;csrf&lt;/li&gt;&lt;li&gt;basicAuth&lt;/li&gt;&lt;li&gt;bodyParser&lt;/li&gt;&lt;li&gt;session&lt;/li&gt;&lt;li&gt;methodOverride&lt;/li&gt;&lt;li&gt;responseTime&lt;/li&gt;&lt;li&gt;router&lt;/li&gt;&lt;li&gt;staticCache&lt;/li&gt;&lt;li&gt;static&lt;/li&gt;&lt;li&gt;directory&lt;/li&gt;&lt;li&gt;vhost&lt;/li&gt;&lt;li&gt;favicon&lt;/li&gt;&lt;li&gt;limit&lt;/li&gt;&lt;li&gt;errorHandler&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/73&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Node.js</category>
<category>express</category>
<category>JavaScript</category>
<category>middle ware</category>
<category>node.js</category>
<category>Use</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/73</guid>
<comments>https://nolran.tistory.com/73#entry73comment</comments>
<pubDate>Tue, 24 Sep 2013 11:40:11 +0900</pubDate>
</item>
<item>
<title>[Node.js] jade 외부 모듈</title>
<link>https://nolran.tistory.com/72</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;jade 모듈도 ejs 모듈과 같이 템플릿 엔진 모듈입니다.&lt;/p&gt;&lt;p&gt;&lt;b&gt;인스톨&lt;/b&gt;&lt;/p&gt;&lt;p&gt;npm install jade&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;jede 모듈 추출&lt;/b&gt;&lt;/p&gt;&lt;p&gt;var jade = require('jade');&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;jade 페이지를 HTML 페이지로 변환&lt;/b&gt;&lt;/p&gt;&lt;p&gt;jade 페이지를 HTML 페이지로 변환할 때에는 ejs 모듈의 render() 메소드와 다르게 문자열을 리턴하는 것이 아니라 함수를 리턴합니다.&lt;/p&gt;&lt;p&gt;&lt;u&gt;jade 모듈 메소드&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;compile(string)&lt;/b&gt; - jade 문자열을 HTML 문자열로 바꿀 수 있는 함수를 생성합니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;textarea name=&quot;code&quot; class=&quot;javascript&quot;&gt;// 모듈을 추출합니다.
var http = require('http');
var jade = require('jade');
var fs = require('fs');

// 서버를 생성하고 실행합니다.
http.createServer(function (request, response) {
    // jadePage.jade 파일을 읽습니다.
    fs.readFile('jadePage.1.jade', 'utf8', function (error, data) {
        // jade 모듈을 사용합니다.
        var fn = jade.compile(data);

        // 출력합니다.
        response.writeHead(200, { 'Content-Type': 'text/html' });
        response.end(fn());
    });
}).listen(52273, function () {
    console.log('Server Running at http://127.0.0.1:52273');
});
&lt;/textarea&gt;
&lt;p&gt;&lt;b&gt;jade (&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: 돋움, Dotum, AppleGothic, sans-serif; line-height: 14px; &quot;&gt;jadePage.1.jade&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255); font-family: 돋움, Dotum, AppleGothic, sans-serif; line-height: 14px; &quot;&gt;)&lt;/span&gt;&lt;b&gt;기본 형식 - 계층 구조 형성&lt;/b&gt;&lt;/p&gt;
&lt;textarea name=&quot;code&quot; class=&quot;html&quot;&gt;html
    head
        title Index Page
    body
        // JADE String
        h1 Hello had .. !
        h2 Lorem ipsum
        hr
        a (href=&quot;http://nolran.tistory.com&quot;, data-test=&quot;multiple Attribute&quot;) Go To Hanbit Media
&lt;/textarea&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;이런 jade 파일이 HTML 형태로 변경이 됩니다.&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/72&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Node.js</category>
<category>jade</category>
<category>JavaScript</category>
<category>node.js</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/72</guid>
<comments>https://nolran.tistory.com/72#entry72comment</comments>
<pubDate>Tue, 24 Sep 2013 11:39:25 +0900</pubDate>
</item>
<item>
<title>[Node.js] ejs 외부 모듈</title>
<link>https://nolran.tistory.com/71</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;p&gt;외부모듈이란 일반 개발자가 만들어 배포한 모듈을 말합니다.&lt;/p&gt;&lt;p&gt;Node.js 는 npm(Node Package Manager)을 기반으로 모듈을 공유합니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;사용법 : npm install 모듈명&lt;/p&gt;&lt;p&gt;ex )&lt;/p&gt;&lt;p&gt;npm install ejs -&amp;gt; ejs 모듈이 설치됩니다.&lt;/p&gt;&lt;p&gt;npm install jade -&amp;gt; jade 모듈이 설치됩니다.&lt;/p&gt;&lt;p&gt;설치된 모듈 사용은&amp;nbsp;&lt;/p&gt;&lt;p&gt;var ejs = require('ejs');&lt;/p&gt;&lt;p&gt;var jade = require('jade');&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ejs 모듈&lt;/p&gt;&lt;p&gt;ejs 모듈은 템플릿 엔진 모듈 입니다. (View, HTML) 담당.&lt;/p&gt;&lt;p&gt;ex) view.ejs 파일&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;textarea name=&quot;code&quot; class=&quot;javascript&quot;&gt;&amp;lt;% var name = 'RintIanTta'; %&amp;gt;
&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;% for (var i = 0; i &amp;lt; 10; i++) { %&amp;gt;
&amp;lt;h2&amp;gt;The Squre of &amp;lt;%= i %&amp;gt; is &amp;lt;%= i * i %&amp;gt; &amp;lt;/h2&amp;gt;
&amp;lt;% } %&amp;gt;
&lt;/textarea&gt;

&lt;p&gt;결과&lt;/p&gt;

&lt;textarea name=&quot;code&quot; class=&quot;javascript&quot;&gt;&amp;lt;h1&amp;gt;RintIanTta&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;14196&amp;lt;/p&amp;gt;
&amp;lt;hr /&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 0 is 0&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 1 is &amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 2 is 4&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 3 is 9&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 4 is 16&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 5 is 25&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 6 is 36&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 7 is 49&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 8 is 64&amp;lt;/h2&amp;gt;
&amp;lt;h2&amp;gt;The Squre of of 9 is 81&amp;lt;/h2&amp;gt;
&lt;/textarea&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;데이터 전달&lt;/div&gt;&lt;div&gt;js 페이지 (controller) 에서 ejs 페이지에 데이터를 전달하는 방법입니다.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;textarea name=&quot;code&quot; class=&quot;javascript&quot;&gt;
var http = require('http');
var fs = require('fs');
var ejs = require('ejs');

http.createServer(function(request, response) {

   //view.ejs 파일을 읽는다.
  fs.readFile('view.ejs', 'utf8', function(error, data) {
     response.writeHead(200, {'content-type' : 'text/html'}); 
     response.end(ejs.render(data, {
         name : 'RintIanTta',
         description : 'Hello ejs With Node.js.. !'
     }));
  });

}).listen(8124, function() {
      console.log('Server running on 8124');
});

&lt;/textarea&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/71&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Node.js</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/71</guid>
<comments>https://nolran.tistory.com/71#entry71comment</comments>
<pubDate>Tue, 24 Sep 2013 11:32:14 +0900</pubDate>
</item>
<item>
<title>[Node.js] 기본 내장 모듈</title>
<link>https://nolran.tistory.com/70</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;os 모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;운영체제와 관련된 정보 출력 (실제로는 잘 사용되지 않음)&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;모듈 추출&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;var os = require('os');&lt;/li&gt;&lt;li&gt;console.log(os.hostname());&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;url 모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;url 관련된 정보 출력&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;var url = require('url');&lt;/li&gt;&lt;li&gt;var parsedObject = url.parse('http://nolran.tistory.com/59');&lt;/li&gt;&lt;li&gt;console.log(parsedObject);&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;Query String 모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;url 에 붙어오는 query 와 관련된 정보 출력&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;var url = require('url');&lt;/li&gt;&lt;li&gt;var querystring = require('querystring');&lt;/li&gt;&lt;li&gt;var parsedObject = url.parse('http://nolran.tistory.com?name=hyukjoon');&lt;/li&gt;&lt;li&gt;console.log(querystring.parse(parsedObject.query));&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;util 모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;Node.js의 보조적인 기능을 모아둔&amp;nbsp;모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;var util = require('util');&lt;/li&gt;&lt;li&gt;var data = uril.format('%d + %d = %d', 52, 273, 52 + 273);&lt;/li&gt;&lt;li&gt;console.log(data);&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;crypto 모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;암호화 생성 모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;var crypto = require('crypto');&lt;/li&gt;&lt;li&gt;var shasum = crypto.createHash('sha1');&lt;/li&gt;&lt;li&gt;shasum.update('crypto_hash');&lt;/li&gt;&lt;li&gt;var output = shasum.digest('hex');&lt;/li&gt;&lt;li&gt;console.log('crypto_hash:', output);&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;File System 모듈&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;파일 처리와 관련된 모듈&lt;/li&gt;&lt;li&gt;빈번하게 사용된다. (파일 읽기, 쓰기)&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;파일 읽기&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;var fs = require('fs');&lt;/li&gt;&lt;li&gt;var text = fs.readFileSync('textfile.txt', 'utf8');&lt;/li&gt;&lt;li&gt;console.log(text);&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;파일 쓰기&lt;/li&gt;&lt;ol style=&quot;list-style-type: decimal; &quot;&gt;&lt;li&gt;var fs = require('fs');&lt;/li&gt;&lt;li&gt;var data = 'Hello World .. !';&lt;/li&gt;&lt;li&gt;fs.writeFile('TextFileOtherWrite.txt', data, 'utf8', function (error) { console.log('WRITE FILE ASYNC COMPLETE'); });&lt;/li&gt;&lt;li&gt;fs.writeFileSync('TextFileOtherWriteSync.txt', data, 'utf8');&lt;/li&gt;&lt;li&gt;console.log('WRITE FILE SYNC COMPLETE');&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/70&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Node.js</category>
<category>default module</category>
<category>JavaScript</category>
<category>Module</category>
<category>node.js</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/70</guid>
<comments>https://nolran.tistory.com/70#entry70comment</comments>
<pubDate>Tue, 24 Sep 2013 11:13:26 +0900</pubDate>
</item>
<item>
<title>[Node.js] Node.js 샘플 애플리케이션</title>
<link>https://nolran.tistory.com/69</link>
<description>&lt;div class=&quot;tt_adsense_top&quot; style=&quot;margin-bottom:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 상단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;4146613208&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;textarea name=&quot;code&quot; class=&quot;javascript&quot;&gt;var http = require('http');

http.createServer(function(req, res) {
    res.writeHead(200, {'content-type' : 'text/plain'});    
    res.end('Hello, World\n');
}).listen(8124);

console.log('Server running on 8124');
&lt;/textarea&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;실행 법&lt;/div&gt;&lt;div&gt;node helloworld.js&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;웹 서버가 생성되고 실행이 됩니다.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;로컬에 생성한 것으로 가정하여 접근 법은&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;http://127.0.0.1:8124&lt;/b&gt; &amp;nbsp; 로 접근하면 됩니다. (8124 포트로 생성 했으므로)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;tt_adsense_bottom&quot; style=&quot;margin-top:30px&quot;&gt;&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- nolran.tistory.com 하단 광고 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-8077582576888330&quot;
     data-ad-slot=&quot;5623346408&quot;
     data-ad-format=&quot;auto&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left; padding-top:10px;clear:both&quot;&gt;
&lt;iframe src=&quot;//www.facebook.com/plugins/like.php?href=https://nolran.tistory.com/69&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=310&amp;amp;action=like&amp;amp;font=tahoma&amp;amp;colorscheme=light&amp;amp;height=65&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:310px; height:65px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
</description>
<category>Node.js</category>
<category>JavaScript</category>
<category>node.js</category>
<category>web</category>
<author>놀란</author>
<guid isPermaLink="true">https://nolran.tistory.com/69</guid>
<comments>https://nolran.tistory.com/69#entry69comment</comments>
<pubDate>Tue, 24 Sep 2013 11:08:07 +0900</pubDate>
</item>
</channel>
</rss>