เกิดอยากจะเขียน API ง่ายๆ ด้วย Ruby on Rails
$11.99
Minimum price
$11.99
Suggested price

เกิดอยากจะเขียน API ง่ายๆ ด้วย Ruby on Rails

เขียนง่าย เขียนสนุก เขียนโปรแกรมไม่ควรจะยากตั้งแต่เริ่มต้น หากเริ่มแล้วยาก ใครจะอยากทำต่อ มาเขียน Ruby on Rails กันเถอะ

About the Book

ซื้อหนังสือฉบับสั่งพิมพ์ผ่าน shopee ง่ายๆได้เลยคับ
https://links.geekstart.io/l/ror-book

ซื้อ ebook ผ่านการโอนเงินง่ายๆ แอดไลน์ @geekstart ได้เลยครับ

Ruby on Rails

Web framework ที่สร้าง successful startup มามากมาย และ ถูกใช้งานบน Platform ใหญ่ๆเช่น

GitHub, dev.to, Basecamp, HEY, Shopify, Airbnb, Twitch, SoundCloud, Hulu, Zendesk, Square, Cookpad

Web framework ที่ใช้งานง่ายมาก เขียนง่าย เข้าใจง่าย

เหมาะสำหรับทำ API สำหรับ Web Application หลากหลายรูปแบบ เหมาะกับ ธุรกิจเกือบทุกชนิด

Technical Debt น้อย อัพเกรดง่าย Convention / Standard ชัดเจน

ทำให้การเขียนโปรแกรมเป็นเรื่องสนุก มากกว่าการแก้ปัญหา

หนังสือเล่มนี้ จะทำให้คุณสร้าง API ได้ยันคุณทำ Project ของคุณเสร็จได้เลย

รวบรวมจากประสบการณ์ใช้ Ruby on Rails มามากกว่า 9 ปี ไม่ว่าจะเป็นงานใหญ่ งานเล็ก รับได้หมด

  • Share this book

  • Categories

    • Ruby on Rails
    • Computers and Programming
    • Ruby
    • Web Development
  • Feedback

    Email the Author(s)

Translation

About the Author

SaKKo Sama
Tanasak Tantitarntong

สวัสดีครับ ผมชื่อศักดิ์


ทำงานด้าน Software Development และเปิดบริษัท มากว่า 10 ปีครับ

ทำ Channel สอน programming เล็กๆใน Youtube ลองหาดูได้ที่ https://www.youtube.com/sakkosama ครับ


ผมถนัดเขียนโปรแกรม และ มีความสุขกับการได้เขียนโปรแกรมให้ลูกค้ามากมาย

สิ่งที่ผมชอบเลือกใช้ และ มีความสุขกับการใช้มันคือ

Backend - Ruby on Rails, PERN Stack

Frontend - VueJS+NuxtJS

Mobile - React-Native


ตลอดสิบปีที่ผ่านมา ผมได้เป็นอาจารย์พิเศษสอน Internet Programming, iPhone Development (Basic/Advance), สอนเลขมัธยมปลาย และ ได้สอนพนักงานในบริษัทของตนเองมากมาย


ผมจึงเริ่มแต่งหนังสือ นำสิ่งที่ผมถนัดมาแบ่งปันความรู้ให้ทุกคน

หวังว่าผู้อ่านจะสนุกกับการเขียนโปรแกรมเหมือนผมนะครับ


Table of Contents

  • 1 Introduction
  • 2 เตรียมเครื่อง
    • 2.1 RVM
    • 2.2 Ruby
    • 2.3 NVM (optional)
    • 2.4 NodeJS (optional)
    • 2.5 Text Editor
      • Atom
      • Sublime
      • VSCode
    • 2.6 Postman / Hoppscotch
  • 3 Creating Ruby on Rails Project
  • 4 Folder structure
    • 4.1 .ruby-version
    • 4.2 .ruby-gemset (new)
    • 4.3 Gemfile & Gemfile.lock
    • 4.4 config folder
      • config/database.yml
      • config/Environments files
    • 4.5 app folder
      • app/controllers/application_controller.rb
      • app/models/application_record.rb
    • 4.6 อื่นๆ
  • 5 Ruby
    • 5.1 Numbers
    • 5.2 BigDecimal (Rails only)
    • 5.3 Strings
    • 5.4 Comment
    • 5.5 Print
    • 5.6 Object Methods
    • 5.7 Array
    • 5.8 Hash
    • 5.9 Blocks
    • 5.10 Modify Built-in Class
  • 6 Controllers for Beginner
    • 6.1 HTTP Request / Actions
    • 6.2 Static GET API
      • Cross origin request (rack-cors)
    • 6.3 POST PUT DELETE for Static
  • 7 Models and Migration
    • 7.1 Creating Model
    • 7.2 Migrating Database
  • 8 Rails Console
    • 8.1 The power of Rails console
    • 8.2 Rails powered by Ruby is fun
  • 9 CRUD ​API ใช้งานได้จริง
    • 9.1 Review บทก่อนหน้า
    • 9.2 RESTful APIs
    • 9.3 API GET users
    • 9.4 API GET users/:id
    • 9.5 API POST /users create
    • 9.6 API PATCH /users/:id update
    • 9.7 API DELETE /users/:id destroy
    • 9.8 Resourceful routes
    • 9.9 สรุปบท CRUD API
  • 10 The Power of Scaffolding
    • 10.1 rails g scaffold
    • 10.2 Controller from scaffold
  • 11 Model Relationship
    • 11.1 ER Diagram
    • 11.2 Starting small project
    • 11.3 Scaffold APIs
    • 11.4 The Missing APIs
    • 11.5 Model’s Relationship
    • 11.6 Testing Model’s Relationship
    • 11.7 Add missing API
    • 11.8 อื่นๆเกี่ยวกับ API
  • 12 Sending Emails
    • 12.1 Action Mailer Basic
    • 12.2 Email Template Layouts
    • 12.3 Test sending email
  • 13 Errors Rescue
    • 13.1 Ruby Rescue
    • 13.2 (API) ApplicationController Rescue
      • Error Class (StandardError)
      • rescue_from
    • 13.3 Example Classes to rescue
  • 14 Authenticating API with JWT
    • 14.1 Devise Gem
    • 14.2 JWT for User model
    • 14.3 Session Controller
    • 14.4 Sign up API
    • 14.5 Sign in API
    • 14.6 User profile API (from JWT)
    • 14.7 Sign out API
  • 15 Model Validation
    • 15.1 Simple Presence Validation
    • 15.2 Validating Inclusion
    • 15.3 Validating Length
    • 15.4 Validate Numbers
    • 15.5 Custom Validation
  • 16 Active Record Query Interfaces
    • 16.1 Date query
    • 16.2 Where NOT
    • 16.3 Scope
    • 16.4 Scope with function
    • 16.5 Ordering
    • 16.6 Relationship Ordering
    • 16.7 Readonly Objects
    • 16.8 Querying Relationship
    • 16.9 Eager Loading
      • n+1 query
    • 16.10 Selecting Fields to Query
    • 16.11 Calculations
      • .count
      • .sum
      • .average
      • .minimum
      • .maximum
      • Others
  • 17 Caching with Rails
    • 17.1 Installing Redis
    • 17.2 การ Config Cache Store on Rails
    • 17.3 Simple Key Caching
    • 17.4 Model Caching
  • 18 Upload File / Image
    • 18.1 Setup ActiveStorage
    • 18.2 Adding ActiveStorage to Model
    • 18.3 Adding Upload Image API
    • 18.4 Storage Location Config
      • Disk Storage
      • Amazon S3 Storage
      • Google Cloud Storage
      • AzureStorage
      • ข้อควรระวัง
  • 19 Managing Status with State Machine
    • 19.1 Act as state machine (aasm)
    • 19.2 AASM Events
    • 19.3 AASM Callbacks
  • 20 Unit tests
    • 20.1 Using rails test
    • 20.2 Test Driven Development (TDD)
    • 20.3 Unit test with fixtures and setup feature
  • 21 Deploying Rails
    • 21.1 Requirements
    • 21.2 Setting New User in ubuntu
    • 21.3 Setting ubuntu for rails
    • 21.4 nginx passenger
    • 21.5 Cloning Project
    • 21.6 Config Nginx Passenger
  • 22 สรุป

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub