<?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 Bhurisub Dejpipatpracha on Medium]]></title>
        <description><![CDATA[Stories by Bhurisub Dejpipatpracha on Medium]]></description>
        <link>https://medium.com/@bhurisub?source=rss-d1dadac63190------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DsOtpzX6nSI1N8Xnw9-RrA.jpeg</url>
            <title>Stories by Bhurisub Dejpipatpracha on Medium</title>
            <link>https://medium.com/@bhurisub?source=rss-d1dadac63190------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:02:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhurisub/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[ลองเรียกใช้ Web Service โดยใช้ NuSOAP ร่วมกับ Laravel]]></title>
            <link>https://medium.com/@bhurisub/%E0%B8%A5%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%A3%E0%B8%B5%E0%B8%A2%E0%B8%81%E0%B9%83%E0%B8%8A%E0%B9%89-web-service-%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%83%E0%B8%8A%E0%B9%89-nusoap-%E0%B8%A3%E0%B9%88%E0%B8%A7%E0%B8%A1%E0%B8%81%E0%B8%B1%E0%B8%9A-laravel-ef4435d56801?source=rss-d1dadac63190------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef4435d56801</guid>
            <dc:creator><![CDATA[Bhurisub Dejpipatpracha]]></dc:creator>
            <pubDate>Sat, 09 Mar 2019 01:55:31 GMT</pubDate>
            <atom:updated>2019-03-09T01:55:31.175Z</atom:updated>
            <content:encoded><![CDATA[<h3>ลองเรียกใช้ Web Service ด้วย NuSOAP ร่วมกับ Laravel</h3><p>วันก่อนได้ลอง Web Service ตัวหนึ่ง ที่ให้บริการตรวจสอบ Username และ Password ของระบบหนึ่ง โดยที่ระบบของเราไม่ต้องมานั่งทำระบบสมาชิกใหม่ และสำหรับผู้ใช้ก็สะดวกเพราะ ใช้ Username และ Password ที่ใช้งานอยู่แล้วใช้งานได้เลย</p><p>ซึ่ง Web Service ดังกล่าวเขียนด้วย PHP และใช้ NuSOAP สำหรับสร้างบริการตรวจสอบ Username และ Password ซึ่งด้วยระบบของเราใช้ Laravel Framework สำหรับการพัฒนา ก็เลยหาลองข้อมูลเพื่อให้ NuSOAP ใช้งานร่วมกับ Laravel</p><p>จึงเป็นที่มาของการเขียน Blog นี้ เขียนไว้เผื่อลืม ซึ่งจะมีลักษณะการติดตั้งและเขียนสคริปต์ดังต่อไปนี้</p><ol><li>ติดตั้ง NuSOAP เพื่อใช้งานร่วมกับ Laravel ผ่าน composer</li></ol><pre>composer require econea/nusoap</pre><p>2. ทดสอบเขียนสคริปต์ โดยเอามาเฉพาะบางส่วน เพื่อทดสอบ Web Service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6E7xHaZ_80-I7mr6zFpSBg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*L5b6Rbp2P70o67y43qnLcg.jpeg" /></figure><p>ลองทดสอบสคริปต์</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*3RPlLazw7H7JMj_lHIZrQQ.jpeg" /><figcaption>ผลของการป้อน Username และ Password ไม่ถูกต้อง</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*OrHXTl-W8o_pWuH8IqJnZw.jpeg" /><figcaption>ผลการทำงานของการป้อน Username และ Password ถูกต้อง</figcaption></figure><p>#NuSOAP #Laravel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef4435d56801" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ที่พักระหว่างรอขึ้นเครื่อง (ดอนเมือง)]]></title>
            <link>https://medium.com/@bhurisub/%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%9E%E0%B8%B1%E0%B8%81%E0%B8%A3%E0%B8%B0%E0%B8%AB%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%AD%E0%B8%82%E0%B8%B6%E0%B9%89%E0%B8%99%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87-%E0%B8%94%E0%B8%AD%E0%B8%99%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%87-1d38922e99a3?source=rss-d1dadac63190------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d38922e99a3</guid>
            <dc:creator><![CDATA[Bhurisub Dejpipatpracha]]></dc:creator>
            <pubDate>Sun, 24 Dec 2017 05:36:20 GMT</pubDate>
            <atom:updated>2017-12-24T11:18:05.043Z</atom:updated>
            <content:encoded><![CDATA[<p>วันนี้ีมีธุระต้องไปต่างจังหวัดที่ต้องนั่งเครื่องบินสองเที่ยว จากภูเก็ต ไป กทม. (ดอนเมือง) ออกมาตั้งแต่ 08:10 น. แล้วต้องขึ้นเครื่องต่อช่วงบ่าย ปัญหาคือมาถึงดอนเมืองบประมาณ 9 โมงเช้าแล้วไม่รู้จะไปอยู่ที่ไหน ก็เลยเดินวนหาที่นั่งหรือที่พักก็เจอที่นี่ Miracle Co-Working Space</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ozC3IUqedN2xymNxlTPC4w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gh-dUz73NMbGZEMtGSp3Og.jpeg" /></figure><p>ซึ่งมีนั่งพักผ่อน นั่งทำงาน หรือบางคนมานอนก็มี มีีอินเทอร์เน็ตให้ใช้ มีปลั๊กไฟให้เราได้ชาร์ตแบต Notebook มือถือ และมีอาหารและเครื่องมือให้เราได้เลือกหลากหลายพอสมควร</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4pERDKSKqO9RiM3fWl-ppA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AS7vVYOclNyvKu-MF-0wCw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*33kOMt5ecAPoa0aCUsjyMg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VuS5vRyNfTRWkjZa-xMvNA.jpeg" /><figcaption>ที่นั่งพัก ที่นั่งทำงาน</figcaption></figure><p>จุดบริการอาหาร</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vc7Mn0H4JxyTZR0cFFwE6A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLi-DXxoDDxPj5FPh39p2Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FoX2CQG1-3ejq2E0S6gJ0A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuDkyBz1r4AotRYMo3qpeg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yx4YjvJ8mwkJRipfnzaaEg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjqIRsp-YtW_SkRGxPVnLQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWOZiUjBuDQD_MS3_cRXBw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncQ4pzOpMic7NSUrdo4l3Q.jpeg" /></figure><p>สำหรับค่าบริการถือว่า ok เพราะได้ส่วนลดของ AIS อีก 15% ซึ่งตอบโจทย์ผมได้คือ มีที่พักนั่งทำงาน ชาร์จแบตได้ และกินข้าวเที่ยงได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLc8uYnG9qDh9sh81P3ZKA.jpeg" /></figure><p>เผื่อใครสนใจใช้บริการครับ..ขอตัวไปขึ้นเครื่องต่อครับ ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d38922e99a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ติดตั้งเว็บเซอร์ฟเวอร์ ngnix ภาษา PHP และฐานข้อมูล MySQL บน Windows]]></title>
            <link>https://medium.com/@bhurisub/%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%80%E0%B8%A7%E0%B9%87%E0%B8%9A%E0%B9%80%E0%B8%8B%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%9F%E0%B9%80%E0%B8%A7%E0%B8%AD%E0%B8%A3%E0%B9%8C-ngnix-%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2-php-%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5-mysql-%E0%B8%9A%E0%B8%99-windows-e7f7ca17b9b0?source=rss-d1dadac63190------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7f7ca17b9b0</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Bhurisub Dejpipatpracha]]></dc:creator>
            <pubDate>Tue, 12 Dec 2017 15:19:43 GMT</pubDate>
            <atom:updated>2017-12-24T12:19:43.161Z</atom:updated>
            <content:encoded><![CDATA[<p>บทความนี้จะลองติดตั้งเว็บเซอร์ฟเวอร์ Nginx ตัวแปลภาษา PHP และฐานข้อมูล MySQL เพื่อจำลองเครื่องตัวเองสำหรับเขียนสคริปต์ด้วยภาษา PHP ไม่ว่าจะเขียน PHP แบบดิบๆ หรือเขียนด้วย PHP framework</p><p>โดยก่อนที่เราจะเริ่มติดตั้งกัน ต้องสร้างโฟลเดอร์สำหรับเก็บโปรแกรมกันเสียก่อน ซึ่งในตัวอย่างนี้จะสร้างโฟลเดอร์ชื่อ myServer เก็บไว้ในเครื่อง c:\myServer</p><p>nginx [engine x] เป็นเว็บเซอร์ฟเวอร์คล้ายกับ apahce ซึ่งปัจจุบันเว็บเซอร์ฟเวอร์ nginx เริ่มมีคนนำมาใช้งานกันแพร่หลายมากขึ้น ตัวอย่างเช่น Dropbox, Netflix, Wordpress.com เป็นต้น ซึ่งเราสามารถติดตั้งเว็บเซอร์ฟเวอร์ nginx ได้จาก <a href="http://nginx.org/en/download.html">http://nginx.org/en/download.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uxzp3xug8fdKqMqRTTRSXA.png" /></figure><p>หลังจากดาวน์โหลดเสร็จแล้วเปลี่ยนชื่อโฟลเดอร์ nginx แล้วนำไฟล์ทั้งหมดไปเก็บไว้ในโฟลเดอร์ myServer ดังภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*ij_oOp-8vr2jLHSSDitS8Q.png" /></figure><p>ทดสอบเปิดใช้งานด้วยคำสั่ง start nginx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*xSWNCC3aQbn_QaHahMG6Zw.png" /></figure><p>แล้วทดสอบใช้งานโดยพิพม์ localhost ดังแสดงตัวอย่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*I1NgvGI56pifT8bJTvC4UA.png" /></figure><p>และหากต้องการเลิกการใช้งานเว็บเซอร์ฟเวอร์ nginx ก็ใช้คำสั่ง taskkill /f /IM nginx.exe ดังภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*9iiOtZS6QFNZA3pxeXGyLg.png" /></figure><h3>ติดตั้งภาษา PHP</h3><p>ต่อไปเรามาติดตั้งตัวแปลภาษา PHP โดยสามารถเข้าไป Download ได้ที่ <a href="http://windows.php.net/download/">http://windows.php.net/download/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7nOV__lC41DDo1ulXvNDQ.png" /></figure><p>ในตัวอย่างนี้ใช้เวอร์ชัน php 7.2 แบบ zip และต้องติดตั้ง Microsoft Visual C++ ด้วย ในตัวอย่างนี้ VC15</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*rh9Ij2XTGUObim7_9U3dSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*dp5rIev84_xcrspSoGtZkw.png" /></figure><p>จากนั้นเปลี่ยนชื่อโฟลเดอร์เป็น php แล้วนำไปเก็บไว้ในโฟลเดอร์ myServer ดังภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*SDh9PAbyy-eOp12-y4jz2w.png" /></figure><p>กำหนด Environment Variable โดยไปที่ Control Panel\All Control Panel Items\System คลิก Advaned system settings แล้วคลิก Environment Variables.. จากนั้นกำหนด PATH C:\myServer\php ดังภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*0NzW0wGsejgtKeBhQav71g.png" /></figure><p>จากนั้นเปิดไฟล์ php.ini-development หรือ php.ini-production แล้วบันทึกเป็นชื่อใหม่ php.ini แล้วเอาเครื่องหมาย ; ออก ดังนี้</p><p>extension_dir = “ext”</p><p>extension=mbstring<br>extension=mysqli<br>extension=openssl<br>extension=pdo_mysql<br>extension=pdo_sqlite</p><p>และกำหนดเขตเวลา<br>date.timezone = “Asia/Bangkok”</p><p>ทดสอบดูเวอร์ชั่นของ PHP โดยใช้คำสั่ง php -v ดังภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PildhkjtRLsouUeh66XSHw.png" /></figure><p>จากนั้นสร้างโฟลเดอร์ www เพื่อเก็บสคริปต์ Project ต่างๆ ของเราในโฟลเดอร์ myServer ดังนี้</p><blockquote>C:\myServer\www</blockquote><p>แล้วกำหนดค่าเพื่อให้เว็บเซอร์ฟเวอร์ nginx สามารถรันภาษา PHP ได้ โดยเข้าไปกำหนดค่าต่างๆ ได้ที่ C:\myServer\nginx\conf\nginx.conf</p><p>ซึ่ง root เป็นกำหนด Path เก็บสคริปต์ของ nginx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*Fb2V78T2XV7ll9u6wQDuwg.png" /></figure><p>จากนั้นเขียนสคริปต์ตัวอย่างชื่อ info.php</p><p>&lt;?php phpinfo(); ?&gt;</p><p>แล้วนำไปเก็บไว้ในโฟลเดอร์ www แล้วทำการ <strong>start nginx </strong>และใช้คำสั่ง<strong> php-cgi.exe -b 127.0.0.1:9000</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*VXmzhAPG_c-fZPKVekrwuQ.png" /></figure><p>ตัวอย่างผลการทำงาน localhost/info.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nrJ1v3u01KoX2xEcunE3kA.png" /></figure><p>เขียนไฟล์ Batch เพื่อสั่งให้เปิดใช้งาน nginx และ PHP พร้อมกันแบบอัตโนมัติ ซึ่งจะสร้างไฟล์ชื่อ start.bat และเขียนเพื่อสั่งปิดการใช้งาน nginx และ PHP ไฟล์ชื่อ stop.bat แล้วนำไปเก็บไว้ในโฟลเดอร์ myServer</p><p>ซึ่งก่อนจะเขียนไฟล์ Batch เราต้องไป Download ไฟล์ RunHiddenConsole.exe ที่ <a href="http://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip">http://redmine.lighttpd.net/attachments/660/RunHiddenConsole.zip</a> เพื่อเวลารันสคริปต์เสร็จแล้วให้หน้าต่าง CMD หายไปแบบอัตโนมัติ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*Bm2wyIVQFZgFNCGZERYn9A.png" /></figure><p>สคริปต์ start.bat เพื่อสั่งเปิด nginx และ ภาษา PHP แล้วหน้าต่างก็หายไป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*fT8YY-s_EwRdmDt8_QzpTw.png" /></figure><p>สคริปต์ stop.bat ปิดการทำงาน nginx และ PHP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*EJEs0EuFqzF6k4Iy7z71ZQ.png" /></figure><h3>ติดตั้งฐานข้อมูล MySQL</h3><p>ต่อไปเราติดตั้งฐานข้อมูล MySQL ซึ่งสามารถเข้าไป Download ไฟล์ติดตั้งที่ <a href="https://dev.mysql.com/downloads/mysql/">https://dev.mysql.com/downloads/mysql</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Go8309GKIFB6cn2hRpnwnQ.png" /></figure><p>ซึ่งในตัวอย่างนี้จะโหลดเป็นไฟล์ zip แล้วทำการแตกไฟล์นำไปเก็บในโฟลเดอร์ myServer ดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*2X8owuN1DZ6txPbXWmQKjg.png" /></figure><p>จากนั้นสร้างโฟลเดอร์ <strong>data</strong> ไว้ในโฟลเดอร์<strong> mysql</strong> เพื่อเก็บข้อมูลต่างๆ ของฐานข้อมูล MySQL จากนั้นสร้างไฟล์ชื่อ my.ini เพื่อกำหนด PATH ของ MySQL ดังภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*hDLrjjjsFzjFpQAWNZQA8w.png" /></figure><p>basedir ตำแหน่งที่เก็บโปรแกรม mySQL <br>datadir ตำแหน่งเก็บข้อมูลของฐานข้อมูล mySQL</p><p>แล้วใช้คำสั่ง mysqld — initialize-insecure เพื่อเริ่มต้นการใช้งานฐานข้อมูล MySQL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*Q-gPoT3jyBIwSJVViq3PWw.png" /></figure><p>จากนั้นใช้คำสั่ง <strong>mysqld — console</strong> เพื่อเปิดใช้งานฐานข้อมูล MySQL ซึ่งเราจะต้องปิดหน้าต่างนี้ค้างเอา แล้วเปิดหน้าต่าง cmd ใหม่ อีกหน้าเพื่อเข้าถึงฐานข้อมูล MySQL ด้วยคำสั่ง <strong>mysql -u root -p </strong>ส่วนรหัสผ่านให้เรา enter ผ่านไปก่อนค่อยกำหนดรหัสผ่านภายหลังได้ มาถึงขั้นตอนก็สามารถเข้าใช้งานฐานข้อมูล MySQL ได้แล้ว</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*TbEbZiUqlFEwE7OU6PEDAQ.png" /></figure><p>ลองทดสอบคำสั่ง SQL เช่น <strong>show databases</strong> เพื่อแสดงชื่อฐานข้อมูล MySQL ทั้งหมด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*BN2NYWjjpgFHm311BNJjxw.png" /></figure><p>จากนั้นเปลี่ยนรหัสผ่านของ root โดยใช้คำสั่ง SQL ดังนี้</p><p><strong>ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘1234<em>’</em>;</strong></p><p>และขั้นตอนสุดท้าย ปรับไฟล์ Batch เพื่อสั่งให้ฐานข้อมูล MySQL เปิดและปิดด้วย ดังภาพ</p><p>ไฟล์ start.bat (ปรับปรุง)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*oOvdCyV1nBlQ-G878Ilnxg.png" /></figure><p>ไฟล์ stop.bat (ปรับปรุง)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*PJf97nQi8CauTVyRJPp4oA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7f7ca17b9b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NativeBase]]></title>
            <link>https://medium.com/@bhurisub/nativebase-c08b661b767e?source=rss-d1dadac63190------2</link>
            <guid isPermaLink="false">https://medium.com/p/c08b661b767e</guid>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Bhurisub Dejpipatpracha]]></dc:creator>
            <pubDate>Wed, 18 Jan 2017 00:37:25 GMT</pubDate>
            <atom:updated>2017-01-18T00:39:00.129Z</atom:updated>
            <content:encoded><![CDATA[<p>ช่วงนี้กำลังลองศึกษา React Native ซึ่งเป็น Framework สำหรับพัฒนา Mobile Applications ที่สามารถทำงานได้ทั้ง Android และ iOS</p><p>หลังจากลองไปซักระยะก็พยายามค้นดูว่า น่าจะมี Framework อะไรบ้างที่ช่วยทำให้หน้าตา App ของเราสวยงามและน่าใช้งานมากขึ้น ซึ่งหากเปรียบเทียบกับการพัฒนา Web Application คงจะเป็นกลุ่ม CSS Framework เช่น Bootstrap Foundation GUMBY เป็นต้น</p><p>ค้นไปค้นมาก็ไปเจอกับ NativeBase ซึ่งเป็น Framework ที่ช่วยสร้าง Components ต่างๆ มากมายสำหรับพัฒนา App โดยสามารถใช้ React Native เป็นฐานหลักสำหรับพัฒนา App ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/190/1*mwALMzGMvmss0MADKGmV9g.png" /><figcaption>icon</figcaption></figure><p>ข้อดีอย่างหนึ่งที่เห็นได้ชัดสำหรับ NatvieBase นั้นก็คือ หากจะต้องสร้างอะไรซักอย่าง ซึ่งหากเขียนสคริปต์ด้วย React Native แบบเพียวๆไม่มีของผสม ก็คงต้องเขียนกันหลายบรรทัด แต่สำหรับ NativeBase เขียนสคริปต์ไม่กี่บรรทัดก็สามารถสร้างได้เหมือนกัน ดังภาพตัวอย่างการปุ่ม</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcG8-CaMIVfgQtnHZp6fZg.jpeg" /><figcaption>NativeBase.io</figcaption></figure><p>สำหรับ NativeBase ที่เป็นปุ่ม เมนู icon เรียกว่า Component โดย Components ของ NativeBase มีเลือกใช้งานมากมายได้ เช่น</p><h3>import { Container, Header, Title, Content, Badge , Button ,Card ,Check Box , DeckSwiper, Fab, FooterTab, Icon, Picker, InputGroup, Layout, List, ListItem, Text, Radio, Spinner, Tabs, Thumbnail, } from ‘native-base’;</h3><p>ซึ่งจะขอยกตัวอย่าง Component บางส่วนของ NativeBase ดังนี้</p><h3>Card (Card Showcase)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEaMF4RePARvIkdDsboeKg.jpeg" /><figcaption><a href="http://nativebase.io/docs/v0.5.13/components#cardShowcase">http://nativebase.io/docs/v0.5.13/components#cardShowcase</a></figcaption></figure><h3>Icon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvCaAWkZhQL1BXYd7M7aHA.jpeg" /><figcaption><a href="http://nativebase.io/docs/v0.5.13/components#icon">http://nativebase.io/docs/v0.5.13/components#icon</a></figcaption></figure><h3>List Avatar</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-NnNER-ChB2HGlq3OuGqhA.jpeg" /></figure><p>ตัวอย่างหน้าตา NativeBase ที่สามารถแสดงบน iOS และ Android</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qMPVRrznVS8EQ0Kja0VNHw.jpeg" /><figcaption><a href="http://nativebase.io/kitchen-sink-app">http://nativebase.io/kitchen-sink-app</a></figcaption></figure><p><strong>วิธีการติดตั้ง NativeBase</strong></p><pre>$ react-native init nativebaseapp<br>$ cd nativebaseapp<br>$ npm install native-base --save</pre><p><strong>สำหรับ Android</strong></p><pre>$ react-native link react-native-vector-icons</pre><p>และปรับปรุง android/app/build.gradle เพื่อให้ App สามารถแสดง icons ต่างๆ และ fonts ได้</p><pre>apply from: &quot;../../node_modules/react-native-vector-icons/fonts.gradle&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vmvw7H0qSjuPruE9eyA8Bg.jpeg" /><figcaption>ทดลองใช้ NativeBase</figcaption></figure><p>สุดท้าย…เขียนเก็บไว้เผื่อลืมและเผื่อใครสนใจจะลองใช้งาน สามารถดูข้อมูลเพิ่มเติมได้ที่ <a href="http://nativebase.io/">http://nativebase.io/</a> ครับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c08b661b767e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>