Learning Single-page Web Application Development

Build powerful and scalable single-page web applications using a full stack JavaScript environment with Node.js, MongoDB, AngularJS, and the Express framework
Preview in Mapt

Learning Single-page Web Application Development

Fernando Monteiro

Build powerful and scalable single-page web applications using a full stack JavaScript environment with Node.js, MongoDB, AngularJS, and the Express framework
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learning Single-page Web Application Development Book Cover
Learning Single-page Web Application Development
$ 26.99
$ 18.90
Building a Single Page Web Application with Knockout.js [Video] Book Cover
Building a Single Page Web Application with Knockout.js [Video]
$ 84.99
$ 72.25
Buy 2 for $35.00
Save $76.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783552092
Paperback214 pages

Book Description

Learning Single-page Web Application Development is a journey through application development using the MEAN stack with JavaScript  on the server side and client side, covering concepts such as RESTful, authentication and session on SPA. You will build large-scale applications. You will use a JavaScript environment with Node.js on the server, MongoDB as the database, and AngularJS on the frontend.

Everything is integrated with the Bower dependency manager, Yeoman, and other modern tools to speed up your development process. You will deploy your application to the cloud and learn how to prepare your directory structure to scale and grow.

Learning Single-page Web Application Development will give you an overview of AngularJS and RESTful APIs, and guide you in learning how to leverage single page development tools to create efficient and effective applications.

Table of Contents

Chapter 1: Understanding Single Page Application
Getting acquainted with SPA
Peculiarities between SPA and traditional web development
Introducing the MEAN stack
The SPA directory structure
It's all about JavaScript
HTML, CSS, and the responsive way
Summary
Chapter 2: Taking a Deep Dive into Node.js and MongoDB
Node server, NPM, and middleware
Event-driven development and the event loop
Express – a web framework on a server
MongoDB and the terminal
Summary
Chapter 3: API with MongoDB and Node.js
The working of an API
Boilerplates and generators
The speakers API concept
Creating the package.json file
Node server with server.js
Model with the Mongoose schema
Defining the API routes
Using MongoDB in the cloud
Inserting data with Postman
Summary
Chapter 4: Creating a Conference Web Application
Rebuilding the API
Adding the Passport middleware
Dealing with routes
Templates with Embedded JavaScript
Bower leading frontend dependencies
Pure CSS and Responsive Boilerplate for frontend views
Summary
Chapter 5: Starting with AngularJS
Starting the baseline application
The AngularJS MVC pattern implementation
Detailing directives, expressions, and scope
Two-way data binding and templates
Understanding dependency injection
Services
Modules in AngularJS
Project organization
Summary
Chapter 6: Understanding Angular Views and Models
Dissecting and understanding the MEAN.JS generator
Scaffolding the application
Refactoring the API
Testing the speakers' API routes
Summary
Chapter 7: Testing Angular SPA with Karma and Protractor
Testing concepts
Introducing Jasmine
Configuring Karma (unit testing)
Configuring Protractor (e2e testing)
Summary
Chapter 8: Deploying the Application to the Cloud
Hosting the project on GitHub
Continuous application development
Automatic deployment from GitHub
Hands-on deployment
Final notes on SPA
Summary

What You Will Learn

  • Streamline your development work with Bower, Yeoman, and Grunt.js
  • Configure an AngularJS application using modules
  • Test AngularJS applications with Karma and Protractor
  • Create a conference web application
  • Start from scratch and refactor your applications using Yo Express generator
  • Use the new features of Express 4 such as Router, static middleware, and more
  • Set up user authentication and store sessions with Passport

Authors

Table of Contents

Chapter 1: Understanding Single Page Application
Getting acquainted with SPA
Peculiarities between SPA and traditional web development
Introducing the MEAN stack
The SPA directory structure
It's all about JavaScript
HTML, CSS, and the responsive way
Summary
Chapter 2: Taking a Deep Dive into Node.js and MongoDB
Node server, NPM, and middleware
Event-driven development and the event loop
Express – a web framework on a server
MongoDB and the terminal
Summary
Chapter 3: API with MongoDB and Node.js
The working of an API
Boilerplates and generators
The speakers API concept
Creating the package.json file
Node server with server.js
Model with the Mongoose schema
Defining the API routes
Using MongoDB in the cloud
Inserting data with Postman
Summary
Chapter 4: Creating a Conference Web Application
Rebuilding the API
Adding the Passport middleware
Dealing with routes
Templates with Embedded JavaScript
Bower leading frontend dependencies
Pure CSS and Responsive Boilerplate for frontend views
Summary
Chapter 5: Starting with AngularJS
Starting the baseline application
The AngularJS MVC pattern implementation
Detailing directives, expressions, and scope
Two-way data binding and templates
Understanding dependency injection
Services
Modules in AngularJS
Project organization
Summary
Chapter 6: Understanding Angular Views and Models
Dissecting and understanding the MEAN.JS generator
Scaffolding the application
Refactoring the API
Testing the speakers' API routes
Summary
Chapter 7: Testing Angular SPA with Karma and Protractor
Testing concepts
Introducing Jasmine
Configuring Karma (unit testing)
Configuring Protractor (e2e testing)
Summary
Chapter 8: Deploying the Application to the Cloud
Hosting the project on GitHub
Continuous application development
Automatic deployment from GitHub
Hands-on deployment
Final notes on SPA
Summary

Book Details

ISBN 139781783552092
Paperback214 pages
Read More

Read More Reviews

Recommended for You

AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
MEAN Web Development Book Cover
MEAN Web Development
$ 29.99
$ 3.00
AngularJS UI Development Book Cover
AngularJS UI Development
$ 26.99
$ 18.90
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00