Rapid Prototyping with JS
Rapid Prototyping with JS
Agile JavaScript Development
About the Book
UPDATE: This books is available at https://gumroad.com/l/rpjs.
Rapid Prototyping with JS: Agile JavaScript Development is a hands-on book which introduces you to agile JavaScript web and mobile software development using the latest cutting-edge front-end and back-end technologies including:
- Node.js
- MongoDB
- Backbone.js
- Parse.com
- Heroku
- Windows Azure
Practical examples include building multiple versions of the Chat app:
- jQuery + Parse.com JS REST API
- Backbone and Parse.com JS SDK
- Backbone and Node.js
- Backbone and Node.js + MongoDB
The Chat application has all the foundation of a typical web/mobile application: fetching data, displaying it, submitting new data. Other examples include:
- jQuery + Twitter RESP API “Tweet Analyzer”
- Parse.com “Save John”
- Node.js “Hello World”
- MongoDB “Print Collections”
- Derby + Express “Hello World”
- Backbone.js “Hello World”
- Backbone.js “Apple Database”
- Monk + Expres.js “REST API Server”
This book will save you many hours by providing the hand-picked and tested colletion of quick start guides. RPJS has practical examples that allow to spend less time learning and more time building your own applications. Prototype fast and ship code that matters!
Buy Rapid Prototyping with JS on Leanpub for $14.87 or read this and four other JavaScript and Node.js books for $4.87/mo on AnyWhereLib.com.
More info: rpjs.co
This book is also available in print as paperback copy.
Download the free Intro to Backbone.js chapter
Jump to the full Table of Contents
Code examples: github.com/azat-co/rpjs
Table of Contents
-
- What Readers Say
- Rapid Prototyping with JS on the Internet
- Acknowledgment
-
Introduction
- Why RPJS?
- What to Expect
- Who This Book is For
- What This Book is Not
- Prerequisites
- How to Use the Book
- Examples
- Notation
- Terms
- About the Author
-
I Quick Start
-
1. Basics
-
1.1 Front-End Definitions
- 1.1.1 Bigger Picture
- 1.1.2 HyperText Markup Language
- 1.1.3 Cascading Style Sheets
- 1.1.4 JavaScript
-
1.2 Agile Methodologies
- 1.2.1 Scrum
- 1.2.2 Test-Driven Development
- 1.2.3 Continuous Deployment and Integration
- 1.2.4 Pair Programming
-
1.3 Back-End Definitions
- 1.3.1 Node.js
- 1.3.2 NoSQL and MongoDB
- 1.3.3 Cloud Computing
- 1.3.4 HTTP Requests and Responses
- 1.3.5 RESTful API
-
1.1 Front-End Definitions
-
2. Setup
-
2.1 Local Setup
- 2.1.1 Development Folder
- 2.1.2 Browsers
- 2.1.3 IDEs and Text Editors
- 2.1.4 Version Control Systems
- 2.1.5 Local HTTP Servers
- 2.1.6 Database: MongoDB
-
2.1.7 Other Components
- 2.1.7.1 Node.js Installation
- 2.1.7.2 JS Libraries
- 2.1.7.3 LESS App
-
2.2 Cloud Setup
- 2.2.1 SSH Keys
- 2.2.2 GitHub
- 2.2.3 Windows Azure
- 2.2.4 Heroku
- 2.2.5 Cloud9
-
2.1 Local Setup
-
1. Basics
-
II Front-End Prototyping
-
3. jQuery and Parse.com
-
3.1 Definitions
- 3.1.1 JavaScript Object Notation
- 3.1.2 AJAX
- 3.1.3 Cross-Domain Calls
- 3.2 jQuery
- 3.3 Twitter Bootstrap
-
3.4 LESS
- 3.4.1 Variables
- 3.4.2 Mixins
- 3.4.3 Operations
- 3.5 Example of using third-party API (Twitter) and jQuery
- 3.6 Parse.com
- 3.7 Chat with Parse.com Overview
- 3.8 Chat with Parse.com: REST API and jQuery version
- 3.9 Pushing to GitHub
- 3.10 Deployment to Windows Azure
- 3.11 Deployment to Heroku
- 3.12 Updating and Deleting of Messages
-
3.1 Definitions
-
4. Intro to Backbone.js
-
4.1 Setting up Backbone.js App from Scratch
- 4.1.1 Dependencies
- 4.2 Working with Collections
- 4.3 Event Binding
- 4.4 Views and Subviews with Underscore.js
- 4.5 Refactoring
- 4.6 AMD and Require.js for Development
- 4.7 Require.js for Production
- 4.8 Super Simple Backbone Starter Kit
-
4.1 Setting up Backbone.js App from Scratch
-
5. Backbone.js and Parse.com
- 5.1 Chat with Parse.com: JavaScript SDK and Backbone.js version
- 5.2 Deploying Chat to PaaS
- 5.3 Enhancing Chat
-
3. jQuery and Parse.com
-
III Back-End Prototyping
-
6. Node.js and MongoDB
-
6.1 Node.js
- 6.1.1 Building “Hello World” in Node.js
- 6.1.2 Node.js Core Modules
- 6.1.3 Node Package Manager
- 6.1.4 Deploying “Hello World” to PaaS
- 6.1.5 Deploying to Windows Azure
- 6.1.6 Deploying to Heroku
- 6.2 Chat: Run-Time Memory Version
- 6.3 Test Case for Chat
-
6.4 MongoDB
- 6.4.1 MongoDB Shell
- 6.4.2 MongoDB Native Driver
- 6.4.3 MongoDB on Heroku: MongoHQ
- 6.4.4 BSON
- 6.5 Chat: MongoDB Version
-
6.1 Node.js
-
7. Putting It All Together
- 7.1 Different Domain Deployment
- 7.2 Changing Endpoints
- 7.3 Chat Application
- 7.4 Deployment
- 7.5 Same Domain Deployment
-
8. BONUS: Webapplog Articles
-
8.1 Asynchronicity in Node
- 8.1.1 Non-Blocking I/O
- 8.1.2 Asynchronous Way of Coding
- 8.2 MongoDB Migration with Monk
-
8.3 TDD in Node.js with Mocha
- 8.3.1 Who Needs Test-Driven Development?
- 8.3.2 Quick Start Guide
-
8.4 Wintersmith — Static Site Generator
- 8.4.1 Getting Started with Wintersmith
- 8.4.2 Other Static Site Generators
-
8.5 Intro to Express.js: Simple REST API app with Monk and MongoDB
- 8.5.1 REST API app with Express.js and Monk
-
8.6 Intro to Express.js: Parameters, Error Handling and Other Middleware
- 8.6.1 Request Handlers
- 8.6.2 Parameters Middleware
- 8.6.3 Error Handling
- 8.6.4 Other Middleware
- 8.6.5 Abstraction
-
8.7 JSON REST API server with Node.js and MongoDB using Mongoskin and Express.js
- 8.7.1 Test Coverage
- 8.7.2 Dependencies
- 8.7.3 Implementation
- 8.7.4 Conclusion
-
8.8 Node.js MVC: Express.js + Derby Hello World Tutorial
- 8.8.1 Node MVC Framework
- 8.8.2 Derby Installation
- 8.8.3 File Structure
- 8.8.4 Dependencies
- 8.8.5 Views
- 8.8.6 Main Server
- 8.8.7 Derby Application
- 8.8.8 Launching Hello World App
- 8.8.9 Passing Values to Back-End
-
8.1 Asynchronicity in Node
-
Conclusion and Further Reading
- Conclusion
-
Further Reading
- JavaScript resources and free ebooks
- JavaScript books
- Node.js resources and free ebooks
- Node.js books
- Interactive online classes and courses
- Startup books and blogs
-
6. Node.js and MongoDB
The Leanpub 60-day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Do Well. Do Good.
Authors have earned$11,707,309writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
CQRS by Example
Carlos Buenosvinos, Christian Soronellas, and Keyvan Akbary- Leverage your Software Architecture skills by learning everything about CQRS in detail with lots of examples
- Develop faster applications by applying CQRS and fostering Read Models and Projections
- Learn how to apply CQRS into a brownfield project from a pragmatic approach
Recipes for Decoupling
Matthias NobackWrite software that survives
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
Functional Event-Driven Architecture
Gabriel VolpeExplore the event-driven architecture (EDA) in a purely functional way. Learn to design and develop distributed systems that scale. Identify common design patterns in such systems.
Take your functional programming skills to the next level by joining me in developing a distributed system powered by Apache Pulsar and Fs2 streams, all in Scala 3!
The PowerShell Scripting and Toolmaking Book
Don Jones and Jeff HicksLearn the patterns, practices, and details of PowerShell Scripting and Toolmaking from the industry's two most recognized experts on the subject.
Mastering STM32 - Second Edition
Carmine NovielloWith more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the first guide around that introduces the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
On Java 8
Bruce EckelBy the author of "Thinking in Java," covering version 8 of the Java programming language (with updates to Java 17). Intended for “dedicated beginners,” it doesn’t assume you know anything about programming and takes you through the material step-by-step. However, I assume you are able to figure things out. It’s not a “dummies” or “idiot’s” guide.
Top Bundles
- #1
Software Architecture
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #3
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #4
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #6
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #8
Practical FP in Scala + Functional event-driven architecture
2 Books
Practical FP in Scala (A hands-on approach) & Functional event-driven architecture, aka FEDA, (Powered by Scala 3), together as a bundle! The content of PFP in Scala is a requirement to understand FEDA so why not take advantage of this bundle!? - #10
The Python Craftsman
3 Books
The Python Craftsman series comprises The Python Apprentice, The Python Journeyman, and The Python Master. The first book is primarily suitable for programmers with some experience of programming in another language. If you don't have any experience with programming this book may be a bit daunting. You'll be learning not just a programming...