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

This book is aimed at web developers who are familiar with frontend technologies like JavaScript, HTML, and CSS, and modern tools like Bower, Yeoman, and Grunt.

Detalles Bibliográficos
Otros Autores: Monteiro, Fernando, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing 2014.
Edición:1st edition
Colección:Community experience distilled.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629224106719
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Understanding Single Page Application; Getting acquainted with SPA; Understanding the work of SPAs; Understanding the MVC/MVVM/MV* pattern; Peculiarities between SPA and traditional web development; Choosing a library or framework; Introducing the MEAN stack; Tools to develop web applications; Text editor; AngularJS; Debugging tools; Generators and the task manager; Yeoman; Bower; Grunt; The SPA directory structure; It's all about JavaScript
  • HTML, CSS, and the responsive wayPure CSS; Summary; Chapter 2: Taking a Deep Dive into Node.js and MongoDB; Node server, NPM, and middleware; Event-driven development and the event loop; The event loop; Working with require() and modules; The require() function; The Node modules; Express - a web framework on a server; MongoDB and the terminal; Comparing a relational database with the NoSQL database; The mongo shell; MongoDB connection with Mongoose; Mongoose schemas and models; Untitled; Summary; Chapter 3: API with MongoDB and Node.js; The working of an API; Boilerplates and generators
  • Hackathon starterMEAN.io or MEAN.JS; The Passport module; Generators; The Express generator; The speakers API concept; The user history; Creating the package.json file; Initiating the 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; Getting the baseline structure; Changing the initialization process; Changing the directory structure; Inserting new folders and files; Creating the configuration file
  • Adding the Passport middlewareAdding session control and password encryption; Setting password encryption to a user model; Reviewing the changes in the server.js file; Dealing with routes; Templates with Embedded JavaScript; Bower leading frontend dependencies; Pure CSS and Responsive Boilerplate for frontend views; Creating the index, profile, login, and signup pages; Summary; Chapter 5: Starting with AngularJS; Starting the baseline application; The AngularJS MVC pattern implementation; Model; View; Controller; Detailing directives, expressions, and scope; Two-way data binding and templates
  • Reusing templatesUnderstanding dependency injection; Services; Modules in AngularJS; Project organization; Summary; Chapter 6: Understanding Angular Views and Models; Dissecting and understanding the MEAN.JS generator; Differentiating MEAN.JS and MEAN.io; Scaffolding the application; The application anatomy; Refactoring the API; The angular-gravatar image directive; Testing the speakers' API routes; Summary; Chapter 7: Testing Angular SPA with Karma and Protractor; Testing concepts; Introducing Jasmine; Configuring Karma (unit testing); Reviewing the speaker controller test
  • Running a Karma test