售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜