Giter Site home page Giter Site logo

grape-on-rails-101's Introduction

Grape on Rails 101 範例

本書連結

對於 Ruby on Rails 的開發者來說,前端 + 後端 + DevOps 一起碰已是家常便飯。

在這個需求越來越複雜,前端也跟著複雜的情況下,前後端分離的架構也越來越常見。

那麼,因為能夠應用於各種 Client 端的需求,API 的開發需求就此而生。

而 Grape on Rails 是目前開發 API 最輕便有名氣的框架,但往往網路上只有簡單的基礎教學,比較少有架構的介紹

包含從 Auth 驗證、Exception 異常處理、Helper 的使用,以及 CRUD 和單元測試的完整一條龍

本書除了是作者自己的筆記以外,也希望能夠幫助更多初入門開發 API 的開發者們。

API 目錄結構

app/api
├── api_root.rb
└── api_v0
    ├── auth
    │   ├── authenticator.rb
    │   └── middleware.rb
    ├── base.rb
    ├── entities
    │   ├── base.rb
    │   └── post.rb
    ├── exception_handlers.rb
    ├── helpers.rb
    ├── ping.rb
    └── posts.rb

grape-on-rails-101's People

Contributors

niclin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jasonlo-tw flchp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.