Opa: Up and Running - Helion
ISBN: 978-14-493-2881-8
stron: 164, Format: ebook
Data wydania: 2013-02-25
Księgarnia: Helion
Cena książki: 67,92 zł (poprzednio: 78,98 zł)
Oszczędzasz: 14% (-11,06 zł)
Want to simplify web development? This hands-on book shows you how to write frontend and backend code simultaneously, using the Opa framework. Opa provides a complete stack for web application development, including a web server, database engine, distribution libraries, and a programming language that compiles to JavaScript.
You’ll learn step-by-step how to use Opa by building two projects through the course of the book: a wiki application similar to Wikipedia, and a Twitter-like micro-blogging platform. Discover how easy it is to use Opa to develop applications with real-time updates, database interactions, and web service design. Do you have JavaScript experience? You’re ready to get started.
- Learn fundamental concepts, including Opa’s functional programming style
- Discover how Opa compiles to JavaScript, using jQuery on the frontend and Node.js on the server
- Construct HTML resources dynamically and embed static resources on an Opa server
- Use Opa’s method for performing CRUD operations and storing key-value pairs in MongoDB
- Build an Opa user interface with the Bootstrap toolkit from Twitter
- Learn variant types, pattern-matching, polymorphic types, recursive functions, and other advanced features
- Manage user accounts by building login forms, handling account activation, and tracking logged users
- Build a reactive UI—a real-time interface that continuously updates user events
Osoby które kupowały "Opa: Up and Running", wybierały także:
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
- Przywództwo w świecie VUCA. Jak być skutecznym liderem w niepewnym środowisku 58,64 zł, (12,90 zł -78%)
- Scrum. O zwinnym zarządzaniu projektami. Wydanie II rozszerzone 58,64 zł, (12,90 zł -78%)
- Od hierarchii do turkusu, czyli jak zarządzać w XXI wieku 58,64 zł, (12,90 zł -78%)
Spis treści
Opa: Up and Running. Rapid and Secure Web Development eBook -- spis treści
- Opa: Up and Running
- Preface
- What Is Opa?
- How Do I Work with Opa?
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- I. Coding a Mini Wikipedia
- 1. First Steps: Getting to Know Opa
- Installing Opa
- Installing Node.js
- Auto-Installing MongoDB
- Our First Program
- Writing and Running the Code
- What localhost:8080 Means
- What the Code Means
- What Happens When We Run Your Application
- Details About the Opa Runtime
- Toward Real Programs
- Battle Plan
- Summary
- Installing Opa
- 2. Opa Fundamentals
- Primitive Values
- Dynamic Content
- Records
- Introduction to Types, and More About Records
- A Brief Introduction to Variants
- Functions: Building Blocks
- Functional Programming
- Functional + Typed
- Summary
- 3. Servers, Resources, and URLs
- Web Resources
- Embedding (Static) Resources
- Serving Resources
- Constructing (Dynamic) Resources
- URL Dispatching
- Summary
- 4. Data Storage
- CRUD (Create, Read, Update, and Delete)
- Maps (Dictionaries)
- Summary
- 5. Building the UI in HTML and CSS
- HTML Markup
- Tags and Attributes
- Inserts
- Event Handlers
- DOM Manipulation
- Example: A Guessing Game
- The Wiki Interface (HTML)
- HTML Plumbing
- Markdown
- Dynamically Updating the Page
- Adding Style (CSS)
- Explicit Style Attributes
- Opa-Powered Style
- External CSS
- Wiki with Style
- Bootstrap: Nice, Out-of-the-Box Styling
- Working with Designers
- How Should I Use the DOM Structure?
- Can You Describe Your Development Environment?
- How Should I Write CSS with Opa?
- Which Tools Should I Use to Write CSS?
- How Do I Improve the CSS Workflow in Opa?
- How Often Should Developers and Designers Interact?
- What Should Developers Know About CSS?
- What Should Designers Know About Opa?
- Can You Provide Some Tips for Quickly Customizing Your Apps Bootstrap-Based UI?
- Summary
- HTML Markup
- 1. First Steps: Getting to Know Opa
- II. Coding a Mini-Twitter
- 6. The Web Chat App
- Starting a New Project
- View: Building User Interface
- Model: Application Logic
- Connecting the Model and the View
- Showing New Messages
- Broadcasting the Current Users Messages
- Connecting Everything
- Understanding Networks
- Exercises
- Customizing the Display
- Saying Hello
- Distinguishing Messages Between Users
- User Customization
- And Beyond
- 7. More Advanced Features of Opa
- Learning More About Types
- Variant Types
- Pattern Matching
- Polymorphic Types
- Recursive Types
- Recursive Functions
- What About Loops?
- Bigger Projects
- Packages
- Summary
- Learning More About Types
- 8. User Management
- Setting Up the View
- Bootstrap Widgets: Modal Windows
- Form Handling in Opa: Registration Form
- Alerts
- Modeling and Adding Users
- Account Creation Notification: Sending Emails
- Activating a User Account Without an Activation Email
- Account Activation: URL Data Handling
- Keeping Track of Logged-In User: Handling User Associated Data
- The Users Top-Bar Menu
- Exercise
- Summary
- 9. Building Reactive UIs: New Messages with a Real-Time Preview
- Parsing
- Parsing Expressions
- Modeling Messages
- Rendering Messages
- Reactive UI: Live Preview
- Summary
- Parsing
- 10. Data Storage and Querying: Storing and Fetching Relevant Messages
- Collections in Opa: Lists, Sets, and Maps
- Declaring Data
- Inserting/Updating Data
- Reading (and Querying) Data
- Projections
- Data Manipulations in Birdy
- Database Declaration
- Storing New Messages
- Fetching Relevant Messages
- User and Topic Pages
- Following Users and Topics
- Following Users
- Following Topics
- Follow Button
- Exercise
- Summary
- 6. The Web Chat App
- About the Authors
- Colophon
- Copyright