Book description
Over 50 recipes to create full-stack high-performance web applications using pure JavaScript and the MEAN stack.
About This Book- Architect a fully functional stand-alone web application, including the web server, database, and front-end web application
- Improve the performance and maintainability of your MEAN stack application with tips for configuration and optimization
- Highlights MEAN Stack best practices when working with your application
If you are a JavaScript developer who wants to create high-performing, modern web applications with the MEAN stack, this is the book for you. Web developers familiar with some parts of the MEAN stack will find this a comprehensive guide to fleshing out the other technologies and skills they need to build all JavaScript web applications. Developers interested in transitioning from other web application stacks to an all-JavaScript environment will find a wealth of information about how to work in a MEAN stack environment.
To get the most from this book, you should have a general understanding of web servers and web applications. You are expected to have a basic understanding of running JavaScript, both in a web browser and outside it, using Node.js and the NPM package manager.
What You Will Learn- Bootstrap a new MEAN stack web application using Node.js and Express
- Build a single-page application (SPA) with Angular and Angular-CLI
- Improve browser performance by optimizing your web application resources using Webpack
- Model complex JSON object relationships in MongoDB using Mongoose
- Debug all the layers of a MEAN stack application, including working with source maps
- Build Restful APIs using Express.js and JSON Web Token (JWT) for user authentication
- Use automated testing to improve the reliability and quality of your MEAN stack application
The MEAN Stack is a framework for web application development using JavaScript-based technologies; MongoDB, Express, Angular, and Node.js. If you want to expand your understanding of using JavaScript to produce a fully functional standalone web application, including the web server, user interface, and database, then this book can help guide you through that transition. This book begins by configuring the frontend of the MEAN stack web application using the Angular JavaScript framework. We then implement common user interface enhancements before moving on to configuring the server layer of our MEAN stack web application using Express for our backend APIs. You will learn to configure the database layer of your MEAN stack web application using MongoDB and the Mongoose framework, including modeling relationships between documents. You will explore advanced topics such as optimizing your web application using WebPack as well as the use of automated testing with the Mocha and Chai frameworks. By the end of the book, you should have acquired a level of proficiency that allows you to confidently build a full production-ready and scalable MEAN stack application.
Style and ApproachThis book is a guide of MEAN Stack specific solutions to common web application problems and includes in-depth guides for each layer of the application stack. Readers looking to upgrade their MEAN Stack web application will find recipes within to help them transition.
Publisher resources
Table of contents
- Preface
-
Working with Angular 4
- Introduction
- Upgrading to Angular 4 using NPM
- Generating a new Angular project using Angular-CLI
- Configuring Angular-CLI project settings
- Working with generators in Angular-CLI
- Ejecting Angular-CLI from your project
- Generating new routes in Angular-CLI
- Defining a home page in your Angular routes
- Handling 404 errors in an Angular project
- Creating nesting routes in Angular
- Creating sibling routes in Angular
- Programmatic page redirection in Angular
- Route preloading with Angular modules
- Running tests in Angular-CLI
-
Enhancing Your User Interface
- Introduction
- Configuring Sass in Angular
- Working with Angular component styles
- Using Sass variables for style reusability
- Using Sass nesting for better style specificity
- Using Sass partials for style organization
- Working with Bootstrap in Sass
- Customizing Bootstrap for Angular
- Using Bootstrap Responsive layouts
- Working with Bootstrap components in Angular
- Working with Font-Awesome icons in Angular
- Internationalization with Angular i18n
- Setting your language with Angular i18n
- How to Localize dates in Angular
-
Working with Data
- Introduction
- Working with actions and events in Angular
- Working with form input and models in Angular
- Validating data with Angular form properties
- Creating services for data in Angular
- Using promises to create asynchronous services in Angular
- Retrieving API data using HTTP services in Angular
- Querying API sources using HTTP services in Angular
- Creating Concurrent API requests in Angular
- Handling API errors and invalid responses in Angular
- HTTP service optimization through client-side caching
-
Using Express Web Server
- Introduction
- Creating a new Express project with express-generator
- Working with routes in Express
- Serving an Angular web application with Express
- Working with headers in Express
- Working with cookies in Express
- Creating Express middleware for routes
- Logging traffic and activity with Morgan
- Running your Express web server with Forever
- Securing your Express web server
- REST APIs and Authentication
- Cloud Service Integrations
- MongoDB and Mongoose
- Relationships
- Build Systems and Optimizations
- Debugging
- Automated Testing
- Whats new in Angular 4
Product information
- Title: MEAN Cookbook
- Author(s):
- Release date: September 2017
- Publisher(s): Packt Publishing
- ISBN: 9781787286573
You might also like
book
Eclipse Modeling Project: A Domain-Specific Language (DSL) Toolkit
Achieve Breakthrough Productivity and Quality with MDD and Eclipse-Based DSLs Domain-specific languages (DSLs) and model-driven development …
book
Real-Time IoT Imaging with Deep Neural Networks: Using Java on the Raspberry Pi 4
This book shows you how to build real-time image processing systems all the way through to …
book
Advanced Express Web Application Development
For experienced JavaScript developers this book is all you need to build highly scalable, robust applications …
book
HTML5 Geolocation
Truly revolutionary: now you can write geolocation applications directly in the browser, rather than develop native …