23,99 €
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!
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 118
Veröffentlichungsjahr: 2013
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2013
Production Reference: 1040613
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-374-9
www.packtpub.com
Cover Image by Parag Kadam (<[email protected]>)
Author
Li Wenbo
Reviewers
Joseph Goldman
Alok Menghrajani
Acquisition Editor
Mary Jasmine Nadar
Commissioning Editor
Neha Nagwekar
Technical Editors
Sharvari H. Baet
Priyanka Kalekar
Project Coordinator
Sherin Padayatty
Proofreader
Paul Hindle
Indexer
Hemangini Bari
Graphics
Abhinash Sahu
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat
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.
Joseph Goldman is an experienced freelance programmer who cut his teeth on 8086 Assembler before joining the Homo Sapiens race by learning to walk upright and adopting more conversational and universal programming languages such as C, Objective C, Smalltalk, Pascal, and more. Over his illustrious 30 year career, he has programmed for VAX under VMS, Sun Microsystems work stations, MS DOS 8088 - Pentium CPUs, MS Windows, Mac OSX, and Linux. A tireless early adopter of new programming paradigms and languages, he is very fond of the new generation of functional and object-oriented programming languages, such as Google's Dart, Opa, Scala, and more, as well as other innovative language designs, most notably REBOL. Today, he specializes in writing web apps and mobile apps for iOS and Android platforms, both smart phones as well as tablets. He is self-employed and can be reached at <[email protected]>. In the late 1990s, Mr. Goldman co-authored REBOL - The Official Guide that was published in the year 2000 by Osborne McGraw-Hill.
Alok Menghrajani Computer Science at EPFL and CMU. He graduated in 2005. He then started working in the field of web security and is currently an engineer at Facebook.
Alok got the opportunity to learn Opa when it was open sourced. He realized the potential this framework offered to improve web development; Opa helps build web applications faster and in a safer way.
He has made various contributions to Opa: reporting bugs, providing feedback to the core team, and helping out with community events such as hackathons.
He is also the author of http://pixlpaste.com/, a web application to share screenshots and images written in Opa.
He has also worked on Opa: Up and Running and JavaScript for PHP Developers.
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Opa Application Development dives into all the concepts and components required to build a web application with Opa. The first half of this book shows 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, as well as slicing, plugins, databases, and so on.
Opa is a full-stack open source web development framework for JavaScript that lets you write secure and scalable web applications. It generates the standard Node.js and 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 is compiled to web standards.
This book is a practical, hands-on guide that provides you with a number of step-by-step exercises. It covers almost all the aspects of developing a web application with Opa, which will help you take advantage of the real power of Opa to build secure and powerful web applications rapidly.
Chapter 1, Getting Started with Opa, introduces how to install and set up an Opa development environment.
Chapter 2, Basic Syntax, covers the basic syntax of Opa.
Chapter 3, Developing Web Applications, introduces the fundamental knowledge about developing a web application with Opa.
Chapter 4, Using Bootstrap, introduces how to use Bootstrap in Opa when developing a web application.
Chapter 5, Communicating Between Client and Server, covers client and server slicing and communicating.
Chapter 6, Binding with Other Languages, explains how to bind JavaScript and Node.js to Opa.
Chapter 7, Working with Databases, explains everything about storing, updating, and querying data in a database with MongoDB as a backend.
Chapter 8, Internationalization, introduces the internationalization approach of Opa.
Chapter 9, Building a Chat Application, explains how to build a web chat application with Opa.
Chapter 10, Building a Game – Pacman, explains how to handle image and audio using a canvas when building a Pacman game.
Chapter 11, Building a Social Mobile Application – LiveRoom, explains how to build a social mobile application with Opa.
Required knowledge for this book is as follows:
Software required for this book is as follows:
This book is written for web developers who want to get started with the Opa framework and who want to build web applications with it. Web development experience is assumed and would be helpful for understanding this book.
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <[email protected]>, and mention the book title via the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the erratasubmissionform link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <[email protected]> with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.
This chapter shows how to install Opa and set its environment. A simple Opa program will also be shown to give a first glimpse of Opa programming.
This section is about installation and configuration of Opa. You