<?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 최백승 on Medium]]></title>
        <description><![CDATA[Stories by 최백승 on Medium]]></description>
        <link>https://medium.com/@loowin?source=rss-e40b1d1611cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*bM0lF_mc0GFOBdi19bwPRA.png</url>
            <title>Stories by 최백승 on Medium</title>
            <link>https://medium.com/@loowin?source=rss-e40b1d1611cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:07:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@loowin/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[Svelte 사용해보기(1)]]></title>
            <link>https://loowin.medium.com/svelte-%EC%82%AC%EC%9A%A9%ED%95%B4%EB%B3%B4%EA%B8%B0-1-be7e56a6a729?source=rss-e40b1d1611cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/be7e56a6a729</guid>
            <dc:creator><![CDATA[최백승]]></dc:creator>
            <pubDate>Mon, 26 Jul 2021 07:57:02 GMT</pubDate>
            <atom:updated>2021-08-03T09:21:04.282Z</atom:updated>
            <content:encoded><![CDATA[<p>😃 안녕하세요. 휴먼스케이프 loowin입니다. 😃</p><p>오늘은 Svelte에 대해 알아보겠습니다.</p><h3>Svelte란?</h3><p>Svelte는 3가지 특징을 가지고 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45msfxawTRHDyQRuSW1Agw.png" /></figure><ol><li>Write less code</li></ol><p>모든 코드는 버그가 있고 따라서 작성해야 하는 코드가 많을수록 앱에 버그가 더 많이 발생합니다. 더 많은 코드를 작성하면 최적화 등에 더 많은 시간을 소요해야합니다. 실제로 프로젝트 개발시간과 버그 수는 코드베이스의 크기에 따라 선형이 아닌 2배로 증가하는 사실은 널리 알려져 있습니다. 가독성을 해치지 않으면서 작성해야 하는 코드의 양을 줄이는 것이 Svelte의 명시적인 목표입니다.</p><p><a href="https://svelte.dev/blog/write-less-code">Write less code</a></p><p>2. No vitual DOM</p><p>지난 몇 년 동안 자바 스크립트 프레임 워크에서 가상DOM을 사용 하는 것을 많이 보았을 겁니다. Svelte는 가상DOM을 사용하지 않고도 빠르게 동작 할 수 있다고 합니다. 가상DOM은 1)이전 스냅샷과 비교하여 2)변경, 추가 또는 제거가 필요한 요소들을 확인하고 3)실제DOM에 업데이트를 해야합니다. 이 3단계 중 3번째 단계만 가치가 있습니다. Svelte는 UI프레임워크와 달리 런타임에 작업을 수행하지 않고 빌드 시 앱에서 상황이 어떻게 변경될 수 있는지 아는 컴파일러입니다.</p><p><a href="https://svelte.dev/blog/virtual-dom-is-pure-overhead">Virtual DOM is pure overhead</a></p><p>3. Truly reactive</p><p>더이상 복잡한 상태 관리 라이브러리가 필요 없습니다. Svelte는 Javascript자체에 반응성을 제공합니다.</p><p><a href="https://svelte.dev/blog/svelte-3-rethinking-reactivity">Svelte 3: Rethinking reactivity</a></p><p>svelte는 2019년도에 처음 등장 후 빠르게 성장하고 있습니다. 아래 지표에서 확인할 수 있듯이 만족도와 관심도 부분에서 React보다 미세한 차이로 높은 점수를 받았습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43ACCdQwzEqnx3exO9GyuA.png" /><figcaption>front-end 만족도</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PlGNe7_vpQs6xzVeTPmIUg.png" /><figcaption>front-end 관심도</figcaption></figure><p><a href="https://2020.stateofjs.com/en-US/technologies/front-end-frameworks/">State of JS 2020: Front-end Frameworks</a></p><h3>Svelte 설치하기</h3><p>먼저 Svelte를 설치해보도록 하겠습니다.</p><pre>npx degit <a href="https://github.com/sveltejs/template">sveltejs/template</a> my-svelte-project<br># or download and extract <a href="https://github.com/sveltejs/template/archive/master.zip">this .zip file</a><br>cd my-svelte-project<br># to use <a href="https://svelte.dev/blog/svelte-and-typescript">TypeScript</a> run:<br># node scripts/setupTypeScript.js<br><br>npm install<br>npm run dev</pre><p>설치과정은 다른 프레임워크들과 별만 다르지 않습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*cq4pftrEqMN-O6TAckDFjA.png" /><figcaption>설치 과정</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nM9OZ1zZWbUbbzdSdoBnLw.png" /><figcaption>프로젝트 기본 화면</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBjnj8OlxI4B_oH6QRAJQg.png" /><figcaption>프로젝트 기본 코드</figcaption></figure><h3>Svelte 소개</h3><p>튜토리얼이 친절하게 되어 있어서 끝까지 따라해보면 Svelte와 많이 친해질 수 있습니다.</p><p>그 중 몇가지 예시를 함께 보도록 하겠습니다.</p><pre>&lt;script&gt;&lt;/script&gt;<br>&lt;p&gt;Hello world!&lt;/p&gt;<br>&lt;style&gt;&lt;style&gt;</pre><p>svelte기본 구조는 위와 같이 되어 있어서 한페이지 파악이 가능하게 되어 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*2OrU8rhwBYVW_mN5CRQzEw.png" /><figcaption>Svelte의 기본 구조</figcaption></figure><pre>&lt;script&gt;<br>  import Nested from &#39;./Nested.svelte&#39;<br>&lt;/script&gt;<br>&lt;Nested/&gt;<br>&lt;style&gt;&lt;style&gt;</pre><p>script부분에 다른 components를 import할 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*I3tErV1yV2nAPP9dtIP3Aw.png" /></figure><p>Props로 values를 전달 할 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*4fkHIDgX4U4imHQgc-hZtw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*5XkMlfPoVqEDbsOH6FNw-w.png" /></figure><pre>&lt;script&gt;<br> let string = `this string contains some &lt;strong&gt;HTML!!!&lt;/strong&gt;`;&lt;/script&gt;</pre><pre>&lt;p&gt;{<a href="http://twitter.com/html">@html</a> string}&lt;/p&gt;</pre><p>@html을 붙이면 string을 html로 랜더링을 할 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*3AoKHp99yeBQJ9uZ8n7o3Q.png" /></figure><pre>&lt;script&gt;<br> let count = 0;<br> $: doubled = count * 2;</pre><pre> function handleClick(){<br>  count += 1;<br> }<br>&lt;/script&gt;</pre><pre>&lt;button on:click={handleClick}&gt;<br> Clicked {count} {count === 1 ? &#39;time&#39; : &#39;times&#39;}<br>&lt;/button&gt;<br>&lt;p&gt;{count} doubled is {doubled}&lt;/p&gt;</pre><p>count가 변경 되었을때 doubled을 변경하고 싶을때는 $:를 사용하면 됩니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*0DZLjdfAEF-cIgtDUIJ2tQ.png" /></figure><pre>{#if user.loggedIn}<br> &lt;button on:click={toggle}&gt;<br>  Log out<br> &lt;/button&gt;<br>{/if}</pre><pre>{#if !user.loggedIn}<br> &lt;button on:click={toggle}&gt;<br>  Log in<br> &lt;/button&gt;<br>{/if}</pre><p>html에는 없는 조건문 및 루프와 같은 로직을 Svelte에서는 사용 할 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*ShlElpn2eO1UOE_8Ia7WAA.png" /><figcaption>if문</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*1zpxVfxefvqR4cGNpGWNtA.png" /><figcaption>if else문</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*GUvCpG5JiNdI55Zthd_SGQ.png" /><figcaption>반복문</figcaption></figure><p>지금까지 간단한 Svelte문법에 대해 말씀드렸습니다.</p><p>다음글에서는 Svelte의 lifecycle과 store등에 대해 알아보고 실제 활용 예제를 다뤄보도록 하겠습니다.</p><h3>Walk with us!</h3><p>기술이 세상을 더 아름답게 할 수 있다고 믿으신다면, 휴먼스케이프와 함께 소중한 뜻을 펼칠 수 있습니다.<br>함께 걸어가며 성장하실 분, 언제든지 연락해주세요 :)</p><p><a href="https://www.notion.so/1-faf31555c84744deb10d976eaa59101a">휴먼스케이프 개발자 채용공고 보러가기</a></p><p><a href="https://www.notion.so/1-faf31555c84744deb10d976eaa59101a">휴먼스케이프와 함께할 개발자를 찾습니다.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be7e56a6a729" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ES2021 / ES12 새로운 기능]]></title>
            <link>https://medium.com/humanscape-tech/es2021-es12-%EC%83%88%EB%A1%9C%EC%9A%B4-%EA%B8%B0%EB%8A%A5-9eb24a0749f5?source=rss-e40b1d1611cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eb24a0749f5</guid>
            <category><![CDATA[es2021]]></category>
            <category><![CDATA[javascript2021]]></category>
            <category><![CDATA[javascript-es21]]></category>
            <category><![CDATA[js21]]></category>
            <category><![CDATA[es21]]></category>
            <dc:creator><![CDATA[최백승]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 07:34:53 GMT</pubDate>
            <atom:updated>2021-02-26T02:58:39.256Z</atom:updated>
            <content:encoded><![CDATA[<h3>ES2021 / ES21 새로운 기능</h3><p>😃 안녕하세요. 휴먼스케이프 loowin입니다. 😃</p><p>오늘은 ES2021 / ES21에 새로 선보인 자바스크립트 기능 5가지에 대해 알아보겠습니다. (ES21는 2021년 6월에 릴리즈 될 예정입니다. )</p><p>ES21에 추가되는 기능은 5가지가 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*QLt56WtES1IxeLddz-2Gww.png" /><figcaption>ES21에 추가되는 5가지 기능</figcaption></figure><h3>1. String.prototype.replaceAll()</h3><p>replaceAll을 통해 문자/단어를 간단히 변경할 수 있습니다.</p><p>기존의 문자열을 변경하기 위해 많이 쓰이는 방법으로는</p><pre>const queryString = &#39;q=query+string+parameters&#39;;<br>const withSpaces = queryString.split(&#39;+&#39;).join(&#39; &#39;);</pre><p>하나의 문자/단어를 변경할때에는 String.prototype.replace() 쓰지만 위와 같은 방법을 대체로 많이 사용합니다. 하지만 이 방법은 문자열을 부분 배열로 분할하고 다시 붙이는 과정에서 오버헤드를 동반합니다.</p><pre>const queryString = &#39;q=query+string+parameters&#39;;<br>const withSpaces = queryString.replaceAll(&#39;+&#39;, &#39; &#39;);</pre><p>이제 replaceAll을 사용하면 간단히 변경 할 수 있습니다.</p><pre>String.prototype.replaceAll(searchValue, replaceValue)</pre><pre><br>ex) humxnscxpe.replaceAll(&#39;x&#39;, &#39;a&#39;); // humanscape</pre><h3>2. Promise.any()</h3><p>새로운 Promise 방식 Promise.any()가 추가되었습니다. Promise.all()과 사용법은 비슷하나 Promise.All()은 모든 resolve 값을 반환해 주는것과 다르게 Promise.any()는 먼저 resolve된 값을 반환해 줍니다. 예시를 통해 차이점을 확인해 보겠습니다.</p><pre>const promise1 = new Promise((resolve) =&gt; setTimeout(resolve, 300, &#39;soso&#39;));<br>const promise2 = new Promise((resolve) =&gt; setTimeout(resolve, 100, &#39;quick&#39;));<br>const promise3 = new Promise((resolve) =&gt; setTimeout(resolve, 500, &#39;slow&#39;));</pre><pre>Promise.all([promise1, promise2, promise3]).then((values) =&gt; {<br>  console.log(values);<br>});<br>// expected output: Array [&quot;soso&quot;, &quot;quick&quot;, &quot;slow&quot;]</pre><p>Promise.all()같은 경우는 1,2,3의 반환값이 순서대로 [“soso”, “quick”, “slow”]배열로 출력이 됩니다.</p><pre>const promise1 = new Promise((resolve) =&gt; setTimeout(resolve, 300, &#39;soso&#39;));<br>const promise2 = new Promise((resolve) =&gt; setTimeout(resolve, 100, &#39;quick&#39;));<br>const promise3 = new Promise((resolve) =&gt; setTimeout(resolve, 500, &#39;slow&#39;));</pre><pre>const promises = [promise1, promise2, promise3];</pre><pre>Promise.any(promises).then((value) =&gt; console.log(value));</pre><pre>// expected output: &quot;quick&quot;</pre><p>Promise.any()같은 경우는 가장 빠르게 해결된 “quick” 출력이 됩니다.</p><h3>3. WeakRef</h3><p>WeakRef는 약한 참조(Weak References)를 의미합니다. 캐시 또는 매핑을 저장하는데 오랜 시간 동안 메모리에 유지하고 싶지 않은 경우에 많이 사용합니다. 해당 객체가 일반참조가 없고 약한 참조만 있다면 가비지 컬렉터가 객체를 파괴하고 메모리를 회수 할 수 있습니다.</p><pre><strong>let</strong> common = {<br>  name: &#39;common&#39;,<br>};<br><br><strong>const</strong> commonWeakRef = <strong>new</strong> WeakRef(common);<br><br><strong>const</strong> printName = () =&gt; {<br>  console.log(commonWeakRef.deref().name); <br>  // deref()약한 참조를 읽는 메서드<br>};<br><br>common = null;<br><br>setInterval(printName, 3000);</pre><p>commonWeakRef에 common 객체를 약한 참조하였습니다. 그 후에 common을 null로 바꿔 일반 참조를 없앤 후 commonWeakRef의 약한참조 되어있는 name을 출력해 보았습니다. 처음에는 name이 잘 출력 되다가 메모리에서 회수 된 후 에러가 출력하는 것을 확인할 수 있습니다.</p><p>WeakRef가 일부 경우에 유용 할 수 있지만 가비지 콜렉션 발생시기, 방법 및 여부는 주어진 JavaScript 엔진의 버전이나 동일한 버전에서도 다른 상황들이 발생할 수 있기에 가능하면 WeakRef 사용을 피할 것을 권장한다고 합니다.</p><h3>4. Logical Assignment Operators</h3><p>+= -= *= /=와 비슷한 &amp;&amp;= ||= ??=새로운 연산자가 추가 되었습니다.</p><p>예시를 통해 조금 더 자세히 설명드리겠습니다.</p><p><strong>And and equals (&amp;&amp;=)</strong></p><pre>a &amp;&amp;= b;<br>a &amp;&amp; (a = b);</pre><pre>ex)<br><strong>let</strong> a = 10;<br><strong>let</strong> b = 15;<br><br>a &amp;&amp;= b; // a는 15</pre><pre><strong>if</strong> (a) {<br>    a = b;<br>} // a는 15</pre><p>a가 truthy면 a에 b가 할당됩니다. 그렇지 않으면(a가 falsy)이면 아무 작업도 수행되지 않습니다.</p><p><strong>Or or equals (||=)</strong></p><pre>a ||= b;<br>a || (a = b);</pre><pre>ex)<br><strong>let</strong> a = null;<br><strong>let</strong> b = 15;</pre><pre>a ||= b; // a는 15</pre><pre><strong>if</strong> (!a) {<br>    a = b;<br>} // a는 15</pre><p>a가 falsy면 a에 b가 할당됩니다. 그렇지 않으면(a가 truthy)이면 아무 작업도 수행되지 않습니다.</p><p><strong>Question question equals (??=)</strong></p><pre>a ??= b;<br>a ?? (a = b);</pre><pre>ex)<br><strong>let</strong> a = null;<br><strong>let</strong> b = 15;</pre><pre>a ??= b; // a는 15</pre><pre><strong>if</strong> (a == null || a == undefined) {<br>    a = b;<br>} // a는 15</pre><p>a가 null, undefined면 a에 b가 할당됩니다. 그렇지 않으면(a가 truthy)이면 아무 작업도 수행되지 않습니다.</p><h3>5. Numeric Separators</h3><p>Numeric Separators를 통해 숫자 그룹을 시각적으로 구분하여 숫자 리터럴을 더 읽기 쉽게 만들 수 있습니다. 특히 긴 숫자가 반복되는 리터럴의 경우 빠르게 구문 분석하기 어려운데 Numeric Separators를 통해 정확한 값 / 크기 순서를 확인할 수 있습니다.</p><pre>const AMOUNT = 12345678900;<br>const AMOUNT = 12_345_678_900;</pre><p>12,345,678,900 인 것을 한눈에 확인할 수 있습니다.</p><h3>마무리</h3><p>이상 ES2021 또는 ES21에 새로 선보인 자바스크립트 기능 5가지에 대해 알아보았습니다. 감사합니다.</p><p>[출처]</p><ul><li><a href="https://github.com/tc39/proposals/blob/master/finished-proposals.md">proposals/finished-proposals.md at main · tc39/proposals</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef">WeakRef - JavaScript | MDN</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll">String.prototype.replaceAll() - JavaScript | MDN</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any">Promise.any() - JavaScript | MDN</a></li><li><a href="https://backbencher.dev/javascript/es2021-new-features">ES2021 / ES12 New Features</a></li><li><a href="https://www.pullrequest.com/blog/javascript-es2021-you-need-to-see-these-es12-features/">JavaScript ES2021 - You Need To See These ES12 Features</a></li></ul><h3>Walk with us!</h3><p>기술이 세상을 더 아름답게 할 수 있다고 믿으신다면, 휴먼스케이프와 함께 소중한 뜻을 펼칠 수 있습니다.<br>함께 걸어가며 성장하실 분, 언제든지 연락해주세요 :)</p><p><a href="https://www.notion.so/1-faf31555c84744deb10d976eaa59101a">휴먼스케이프 개발자 채용공고 보러가기</a></p><p><a href="https://www.notion.so/1-faf31555c84744deb10d976eaa59101a">휴먼스케이프와 함께할 개발자를 찾습니다.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eb24a0749f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/humanscape-tech/es2021-es12-%EC%83%88%EB%A1%9C%EC%9A%B4-%EA%B8%B0%EB%8A%A5-9eb24a0749f5">ES2021 / ES12 새로운 기능</a> was originally published in <a href="https://medium.com/humanscape-tech">None</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[웹에서 slack으로 메시지 보내기]]></title>
            <link>https://medium.com/humanscape-tech/%EC%9B%B9%EC%97%90%EC%84%9C-slack%EC%9C%BC%EB%A1%9C-%EB%A9%94%EC%8B%9C%EC%A7%80-%EB%B3%B4%EB%82%B4%EA%B8%B0-f5f5e8c21b5c?source=rss-e40b1d1611cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5f5e8c21b5c</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[incoming-webhook]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[message]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[최백승]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 14:33:32 GMT</pubDate>
            <atom:updated>2020-07-15T01:40:14.128Z</atom:updated>
            <content:encoded><![CDATA[<p>😃 안녕하세요. 휴먼스케이프 loowin입니다. 😃</p><p>오늘은 많은 사람들이 사용하고 있는 Slack으로 메시지 보내는 방법과 활용 방법을 알아 보겠습니다. [2020.07.14 작성]</p><h3>1. Slack App [Incoming Webhooks] 추가</h3><p>가장 먼저 Slack에 메시지를 보내기 위해 Incoming Webhooks를 추가합니다.</p><p>Incoming Webhooks는 외부에서 Slack으로 메시지 텍스트 및 일부 옵션이 포함 된 <a href="https://en.wikipedia.org/wiki/JSON">JSON</a>을 보내는 고유 한 URL을 제공해주는 App입니다. 추가 방법은 간단합니다.!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDI3UrwLkEx40IPxnLjHSQ.png" /><figcaption>Slack에서 App찾기</figcaption></figure><p>Slack 왼쪽 메뉴에서 App을 찾은 후 !! Incoming Webhooks를 검색 한 후 Add 버튼을 누릅니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvGTmiqHUmbdFG_pS4y9BA.png" /><figcaption>Add to Slack</figcaption></figure><p>그러면 위이미지와 같은 페이지로 이동을 합니다.</p><p>Add to Slack 버튼을 클릭합니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQG2PYRqcbwV_05hKpy7hw.png" /><figcaption>Choose a channel</figcaption></figure><p>메시지를 보낼 채널을 선택하고 Add Incoming webHooks integration 버튼을 클릭합니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hf0cR1P5HFYI0re1JmanFw.png" /><figcaption>생성된 Webhook URL</figcaption></figure><p>그 결과 Webhook URL이 생성이 됩니다.</p><pre><a href="https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX">https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX</a></pre><p>생성된 url을 활용하여 웹에서 Slack으로 메시지를 보내보겠습니다.</p><h3>2. 웹(html, javascript)에서 Slack으로 메시지 보내기</h3><p>웹에서 이름, 전화번호를 입력받아 Slack으로 보내보겠습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/583fff86bae40591e5a257a24aea7269/href">https://medium.com/media/583fff86bae40591e5a257a24aea7269/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*49jS1y78NqcfzDk64GsrtA.png" /><figcaption>이름, 전화번호 폼</figcaption></figure><p>이름, 전화번호를 받아서 보내는 폼을 만들어 보았습니다.</p><p>이제 slack으로 보내는 javascript를 추가해 보겠습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1b9d9516d66e8e08ede08968e9f27f6/href">https://medium.com/media/c1b9d9516d66e8e08ede08968e9f27f6/href</a></iframe><p>이제 메시지를 보내 보겠습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*J-6K2SiAn-XHXPZSJG0iSQ.png" /><figcaption>폼에 정보 입력</figcaption></figure><p>폼에 정보를 입력하고 보내기를 누르면</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*sErfkaayPz6IezhCbzI8Gw.png" /><figcaption>Slack에 메시지 도착</figcaption></figure><p>Slack에 메시지가 도착합니다. 메시지는 여러포맷으로 전송이 가능합니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lDWZvTbuQ_d_0pB0WKiCGA.png" /><figcaption><a href="https://api.slack.com/messaging/webhooks#incoming_webhooks_programmatic">J</a>son 예시</figcaption></figure><p>Incoming Webhooks 예시 Json으로 보내면 <br>(<a href="https://api.slack.com/messaging/webhooks#incoming_webhooks_programmatic">https://api.slack.com/messaging/webhooks#incoming_webhooks_programmatic</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*8Jtk12lV591x8xbdYq4Erg.png" /></figure><p>이와 같은 포맷으로 전송이 됩니다.</p><p>조금 더 편리한 방법으로는 webhook의 포맷을 잡아주는 App을 활용하면 됩니다. (<a href="https://app.slack.com/block-kit-builder">https://app.slack.com/block-kit-builder</a>)</p><h3>마무리</h3><p>이상 웹에서 Slack으로 메시지를 보내기 였습니다. 다른 활용 예제들도 추가해보도록 하겠습니다. 감사합니다.</p><p>[출처] <a href="https://api.slack.com/incoming-webhooks">https://api.slack.com/incoming-webhooks</a></p><p><strong>Get to know us better!<br>Join our official channels below.</strong></p><p>Telegram(EN) : <a href="https://t.me/Humanscape?source=post_page---------------------------">t.me/Humanscape</a><br>KakaoTalk(KR) : <a href="http://open.kakao.com/o/gqbUQEM?source=post_page---------------------------">open.kakao.com/o/gqbUQEM</a><br>Website : <a href="https://humanscape.io/?source=post_page---------------------------">humanscape.io</a><br>Medium : <a href="http://medium.com/humanscape-ico?source=post_page---------------------------">medium.com/humanscape-ico</a><br>Facebook : <a href="http://www.facebook.com/humanscape?source=post_page---------------------------">www.facebook.com/humanscape</a><br>Twitter : <a href="http://twitter.com/Humanscape_io?source=post_page---------------------------">twitter.com/Humanscape_io</a><br>Reddit : <a href="https://www.reddit.com/r/Humanscape_official?source=post_page---------------------------">https://www.reddit.com/r/Humanscape_official</a><br>Bitcointalk announcement : <a href="https://bit.ly/2rVsP4T?source=post_page---------------------------">https://bit.ly/2rVsP4T</a><br>Email : <a href="/service/mailto:support@humanscape.io?source=post_page---------------------------">support@humanscape.io</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5f5e8c21b5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/humanscape-tech/%EC%9B%B9%EC%97%90%EC%84%9C-slack%EC%9C%BC%EB%A1%9C-%EB%A9%94%EC%8B%9C%EC%A7%80-%EB%B3%B4%EB%82%B4%EA%B8%B0-f5f5e8c21b5c">웹에서 slack으로 메시지 보내기</a> was originally published in <a href="https://medium.com/humanscape-tech">None</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>