Book description
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
Publisher resources
Table of contents
- Opa: Up and Running
- Preface
-
I. Coding a Mini Wikipedia
- 1. First Steps: Getting to Know Opa
- 2. Opa Fundamentals
- 3. Servers, Resources, and URLs
- 4. Data Storage
-
5. Building the UI in HTML and CSS
- HTML Markup
- The Wiki Interface (HTML)
- Adding Style (CSS)
- 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 App’s Bootstrap-Based UI?
- Summary
-
II. Coding a Mini-Twitter
- 6. The Web Chat App
- 7. More Advanced Features of Opa
-
8. User Management
- Setting Up the View
- Bootstrap Widgets: Modal Windows
- Form Handling in Opa: Registration Form
- 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 User’s Top-Bar Menu
- Exercise
- Summary
- 9. Building Reactive UIs: New Messages with a Real-Time Preview
- 10. Data Storage and Querying: Storing and Fetching Relevant Messages
- About the Authors
- Colophon
- Copyright
Product information
- Title: Opa: Up and Running
- Author(s):
- Release date: February 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449328818
You might also like
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
article
Use GitHub Copilot: Additional Tips
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …
video
GenAI Essentials for Everyone - Overview
Our team of experts has hand-selected and organized the most crucial concepts and practical applications of …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …