Cover image for Opa Application Development.
Opa Application Development.
Title:
Opa Application Development.
Author:
Wenbo, Li.
ISBN:
9781782163756
Personal Author:
Physical Description:
1 online resource (144 pages)
Contents:
Opa Application Development -- Table of Contents -- Opa Application Development -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 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 -- 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 -- 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 -- 4. Using Bootstrap -- Importing Bootstrap -- Using classes -- Using icons -- Bootstrap icons -- Font Awesome icons -- Using widgets -- Summary -- 5. Communicating between Client and Server -- Client and server slicing -- A simple example -- Slicing annotations -- Module slicing -- Expression slicing -- Client and server communication -- Session -- Cell -- Network.

Summary -- 6. Binding with Other Languages -- Binding JavaScript -- The first example -- Using external types -- Binding Node.js -- Binding external functions using the classic syntax -- Summary -- 7. Working with Databases -- A quick start to MongoDB -- Database manipulation -- Records -- Lists -- Sets and maps -- Querying data -- Summary -- 8. Internationalization -- Internal approach -- External approach -- Summary -- 9. Building a Chat Application -- Creating a project -- Launching the web server -- Designing user interface -- Building application logic -- Broadcasting and receiving messages -- Summary -- 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 -- 11. Developing a Social Mobile Application - LiveRoom -- Project structure -- Authorizing a user -- Signing in and signing out -- Signing in with Facebook -- The application -- Listing topics -- Creating a topic -- Posting messages and comments -- Designing for mobile devices -- Summary -- Index.
Abstract:
It is a tutorial guide to learning how to use Opa with JavaScript, Nodejs, and MongoDB to develop web applications easily and effectively.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.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Subject Term:
Electronic Access:
Click to View
Holds: Copies: