更新时间:2021-08-05 16:43:16
封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
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
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
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
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
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
Chapter 7. Testing Angular SPA with Karma and Protractor
Testing concepts
Introducing Jasmine
Configuring Karma (unit testing)
Configuring Protractor (e2e testing)
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
Index