Free Sample
+ Collection

Opa Application Development

Li Wenbo

A rapid and secure web development framework to develop web applications quickly and easily in Opa
RRP $14.99
RRP $29.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782163749
Paperback116 pages

About This Book

  • 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.

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.

Table of Contents

Chapter 1: Getting Started with Opa
Installing Opa
Setting up editors
Your first Opa application
Chapter 2: Basic Syntax
Basic datatypes
Data structures
Pattern matching
Text parsers
Chapter 3: Developing Web Applications
Starting a web server
Dispatching requests
Preparing pages
Manipulating DOMs
Chapter 4: Using Bootstrap
Importing Bootstrap
Using classes
Using icons
Using widgets
Chapter 5: Communicating between Client and Server
Client and server slicing
Client and server communication
Chapter 6: Binding with Other Languages
Binding JavaScript
Binding Node.js
Binding external functions using the classic syntax
Chapter 7: Working with Databases
A quick start to MongoDB
Database manipulation
Querying data
Chapter 8: Internationalization
Internal approach
External approach
Chapter 9: Building a Chat Application
Creating a project
Launching the web server
Designing user interface
Building application logic
Broadcasting and receiving messages
Chapter 10: Building a Game – Pacman
The project structure
The HTML5 Canvas
Drawing a shape
Drawing an image
Drawing the text
Binding the external JavaScript library
Chapter 11: Developing a Social Mobile Application – LiveRoom
Project structure
Authorizing a user
The application

What You Will Learn

  • 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!


Read More