Opa Application Development

Opa Application Development
eBook: $14.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $44.98    Print cover: $29.99
save 33%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Discover the Opa framework in a progressive and structured way
  • Build secure, powerful web applications with Opa.
  • Create three complete web application demos with Opa.

Book Details

Language : English
Paperback : 116 pages [ 235mm x 191mm ]
Release Date : June 2013
ISBN : 1782163743
ISBN 13 : 9781782163749
Author(s) : Li Wenbo
Topics and Technologies : All Books, Application Development, Open Source, Web Development

Table of Contents

Chapter 1: Getting Started with Opa
Chapter 2: Basic Syntax
Chapter 3: Developing Web Applications
Chapter 4: Using Bootstrap
Chapter 5: Communicating between Client and Server
Chapter 6: Binding with Other Languages
Chapter 7: Working with Databases
Chapter 8: Internationalization
Chapter 9: Building a Chat Application
Chapter 10: Building a Game – Pacman
Chapter 11: Developing a Social Mobile Application – LiveRoom
  • Chapter 1: Getting Started with Opa
    • Installing Opa
      • Installing Node.js
      • Installing the required modules
      • Installing the Opa compiler
      • Testing the installation
    • Setting up editors
      • Sublime Text
      • Vim
      • Emacs
    • Your first Opa application
    • Summary
    • Chapter 2: Basic Syntax
      • Basic datatypes
        • Integers
        • Floats
        • Strings
        • Sum
      • Functions
        • Last expression return
        • Modules
      • Data structures
        • Records
          • Tuples
        • Lists
          • Iterating through a list
          • Finding elements
          • Transforming lists
          • Sorting a list
        • Maps
      • Pattern matching
      • Text parsers
      • Summary
      • Chapter 3: Developing Web Applications
        • Starting a web server
          • A simple example
          • The server module
        • Dispatching requests
          • The resource handler
          • The dispatch handler
          • The register handler
          • The customize handler
          • The handlers group
        • Preparing pages
          • XHTML
          • Creating a page
          • Adding styles
          • Handling events
        • Manipulating DOMs
          • DOM selection
          • Reading values
          • Updating content
          • Binding an event handler
          • Animations
        • Summary
        • Chapter 4: Using Bootstrap
          • Importing Bootstrap
          • Using classes
          • Using icons
            • Bootstrap icons
            • Font Awesome icons
          • Using widgets
          • Summary
                    • Chapter 10: Building a Game – Pacman
                      • The project structure
                      • The HTML5 Canvas
                      • Drawing a shape
                        • Using the fill and stroke properties
                        • Drawing a curve
                      • Drawing an image
                      • Drawing the text
                      • Binding the external JavaScript library
                        • Preloading the resources
                        • Playing sounds
                      • Summary

                        Li Wenbo

                        Li Wenbo studied Computer Science and Technology at Wuhan University, graduating with a master's degree. He has two years experience working as a Software Engineer in a leading telecom company in China. He has been doing web development for about 8 years, ever since he was a student at Wuhan University. He is familiar with a lot of programming languages such as C/C++, Java, JavaScript, PHP, and so on, and he has a passion for new things and technologies. Li tried the Opa framework last year and found it very interesting. He then participated in an Opa challenge and won the first prize. Li Wenbo is now a freelance developer and owns a small studio in Wuhan, China.
                        Sorry, we don't have any reviews for this title yet.

                        Code Downloads

                        Download the code and support files for this book.

                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        Opa Application Development +    Hadoop Real-World Solutions Cookbook =
                        50% Off
                        the second eBook
                        Price for both: $31.50

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • Set up Opa development environment
                        • Develop a web application, manipulate DOM and CSS.
                        • Use bootstrap in Opa, including classes, icons and widgets.
                        • Slice client and server code.
                        • Bind JavaScript and Nodejs to Opa and build a plugin.
                        • Store, update and query data in database with MongoDB as the backend.
                        • Build a chat application, LiveRoom application in Opa.
                        • Handle image and audio with canvas to build a Pacman game

                        In Detail

                        Opa is a full-stack Open Source web development framework for JavaScript that lets you write secure and scalable web applications. It generates standard Node.js/MongoDB applications, natively supports HTML5 and CSS and automates many aspects of modern web application programming. It handles all aspects of web programming written in one consistent language and compiled to web standards.

                        Opa Application Development is a practical,hands-on guide that provides you with a number of step-by-step exercises. It covers almost all aspects of developing a web application with Opa, which will help you take advantage of the real power of Opa, as well as building a secure, powerful web application rapidly.

                        Opa Application Development dives into all concepts and components required to build a web application with Opa. The first half of this book shows you all of the basic building blocks that you will need to develop an Opa application, including the syntax of Opa, web development aspects, client and server communication and slicing, plugin, database, and so on. By the end of the book you will have yourself created a complete web application along with a game: Pacman!


                        It is a tutorial guide to learning how to use Opa with JavaScript, Nodejs, and MongoDB to develop web applications easily and effectively.

                        Who this book is for

                        If you are a web developer who wants to get started with the Opa framework and build web applications with it? Then this book is for you. Web development experience is assumed and would be helpful.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software