Opa: Up and Running

Henri Binsztok, Adam Koprowski, Ida Swarczewskaja

  • 出版商: O'Reilly
  • 出版日期: 2013-04-02
  • 售價: $770
  • 貴賓價: 9.5$732
  • 語言: 英文
  • 頁數: 164
  • 裝訂: Paperback
  • ISBN: 1449328857
  • ISBN-13: 9781449328856
  • 相關分類: JavaScriptNode.js
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Want to simplify web development? This hands-on book shows you how to write frontend and backend code simultaneously, using the Opa framework. Opa provides a complete stack for web application development, including a web server, database engine, distribution libraries, and a programming language that compiles to JavaScript.

You’ll learn step-by-step how to use Opa by building two projects through the course of the book: a wiki application similar to Wikipedia, and a Twitter-like micro-blogging platform. Discover how easy it is to use Opa to develop applications with real-time updates, database interactions, and web service design. Do you have JavaScript experience? You’re ready to get started.

  • Learn fundamental concepts, including Opa’s functional programming style
  • Discover how Opa compiles to JavaScript, using jQuery on the frontend and Node.js on the server
  • Construct HTML resources dynamically and embed static resources on an Opa server
  • Use Opa’s method for performing CRUD operations and storing key-value pairs in MongoDB
  • Build an Opa user interface with the Bootstrap toolkit from Twitter
  • Learn variant types, pattern-matching, polymorphic types, recursive functions, and other advanced features
  • Manage user accounts by building login forms, handling account activation, and tracking logged users
  • Build a reactive UI—a real-time interface that continuously updates user events

商品描述(中文翻譯)

想要簡化網頁開發嗎?這本實作書籍將向您展示如何同時編寫前端和後端程式碼,使用Opa框架。Opa提供了完整的網頁應用程式開發堆疊,包括網頁伺服器、資料庫引擎、分佈式函式庫,以及一種能夠編譯成JavaScript的程式語言。

透過本書,您將逐步學習如何使用Opa,並通過兩個專案的建立來實踐:一個類似維基百科的維基應用程式,以及一個類似Twitter的微型博客平台。您將發現使用Opa開發具有實時更新、資料庫互動和網頁服務設計的應用程式是多麼容易。您有JavaScript經驗嗎?那麼您已經準備好開始了。

本書將教您以下基礎概念,包括Opa的函數式編程風格;介紹Opa如何編譯成JavaScript,在前端使用jQuery,在伺服器端使用Node.js;動態構建HTML資源並在Opa伺服器上嵌入靜態資源;使用Opa進行CRUD操作並在MongoDB中存儲鍵值對;使用Twitter的Bootstrap工具包構建Opa使用者介面;學習變體類型、模式匹配、多態類型、遞迴函數和其他高級功能;通過構建登錄表單、處理帳戶啟用和追蹤已登錄使用者來管理使用者帳戶;構建反應式使用者介面,即連續更新使用者事件的實時介面。