Building an E-Commerce Application with MEAN

Develop an end-to-end, real-time e-commerce application using the MEAN stack

Building an E-Commerce Application with MEAN

This ebook is included in a Mapt subscription
Adrian Mejia

2 customer reviews
Develop an end-to-end, real-time e-commerce application using the MEAN stack
$0.00
$23.80
$34.99
$29.99p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785286551
Paperback224 pages

Book Description

MEAN stands for MongoDB, Express, AngularJS, and Node.js. It is a combination of a NoSQL database, MongoDB, with a couple of JavaScript web application frameworks, namely Express.js and Angular.js. These run on Node.js.

There is always an ever-growing list of requirements while designing an e-commerce application, which needs to be flexible enough for easy adaptation. The MEAN stack allows you to meet those requirements on time and build responsive applications using JavaScript.

This book will show you how to create your own e-commerce application using the MEAN stack. It will take you step by step through the parallel process of learning and building. It will also teach you to develop a production-ready, high-quality e-commerce site from scratch and will provide the knowledge you need to extend your own features to the e-commerce site.

This book starts with a short introduction to the MEAN stack, followed by a step-by-step guide on how to build a store with AngularJS, set up a database with MongoDB, create a REST API, and wire AngularJS. It also shows you how to manage user authentication and authorization, check multiple payment platforms, add products’ search and navigation, deploy a production-ready e-commerce site, and finally add your own high-quality feature to the site.

By the end of the book, you will be able to build and use your own e-commerce app in the real world and will also be able to add your own new features to it.

Table of Contents

Chapter 1: Getting Started with the MEAN Stack
Introducing the MEAN stack
Installing the MEAN component
Understanding the project structure
Previewing the final e-commerce app
Understanding the requirements for e-commerce applications
Summary
Chapter 2: Building an Amazing Store Frontend with AngularJS
Understanding AngularJS and the client directory structure
Laying out the e-commerce MVP
CRUD-ing products with AngularJS
Summary
Chapter 3: Building a Flexible Database with MongoDB
Understanding MongoDB
CRUDing with Mongoose
Exploring a few advanced features in Mongoose
Reviewing models and server-side structure
Summary
Chapter 4: Creating a RESTful API with NodeJS and ExpressJS
Getting started with REST
Scaffolding RESTful APIs
Bootstrapping ExpressJS
Understanding routes in ExpressJS
Testing, TDD, BDD, and NodeJS
Creating the product model
Implementing the Product API
Summary
Chapter 5: Wiring AngularJS with ExpressJS REST API
Implementing a RESTful product service
Wiring the product controller with new RESTful methods
Uploading product images
Testing RESTful APIs in AngularJS
End-to-end testing
Summary
Chapter 6: Managing User Authentication and Authorization
Getting started with authentication strategies
Understanding client-side authentication
Understanding server-side authentication
Authenticating with Facebook, Google, and Twitter
Summary
Chapter 7: Checking Out Products and Accepting Payment
Setting up the shopping cart
The checkout page and Braintree integration
Setting up Braintree endpoint and authentication
Creating an order
Summary
Chapter 8: Adding Search and Navigation
Adding search to the navigation bar
Adding product categories
Implementing the search and navigation functionality
Wrapping it up
Summary
Chapter 9: Deploying a Production-ready e-Commerce App
Building for production
Scaling web applications
Deploying the application to the cloud
Deploying applications in a multi-server environment
Performing stress tests
Production architecture for scaling NodeJS
Next steps on security
Summary
Chapter 10: Adding Your Own Features with High Quality
Planning a new feature
Testing the new feature
Features backlog
Deploying a new version of the app
Summary

What You Will Learn

  • Employ AngularJS to build responsive UI components
  • Implement multiple authentication strategies such as OAuth, JsonWebToken, and Sessions
  • Enhance website usability with social logins such as Facebook, Twitter, and Google
  • Create integrations with payment platforms such as PayPal
  • Apply full-text search functionality in MongoDB
  • Build a flexible categorization system to organize your products
  • Secure your app by creating SSL certificates and run payment platforms in a live environment

Authors

Table of Contents

Chapter 1: Getting Started with the MEAN Stack
Introducing the MEAN stack
Installing the MEAN component
Understanding the project structure
Previewing the final e-commerce app
Understanding the requirements for e-commerce applications
Summary
Chapter 2: Building an Amazing Store Frontend with AngularJS
Understanding AngularJS and the client directory structure
Laying out the e-commerce MVP
CRUD-ing products with AngularJS
Summary
Chapter 3: Building a Flexible Database with MongoDB
Understanding MongoDB
CRUDing with Mongoose
Exploring a few advanced features in Mongoose
Reviewing models and server-side structure
Summary
Chapter 4: Creating a RESTful API with NodeJS and ExpressJS
Getting started with REST
Scaffolding RESTful APIs
Bootstrapping ExpressJS
Understanding routes in ExpressJS
Testing, TDD, BDD, and NodeJS
Creating the product model
Implementing the Product API
Summary
Chapter 5: Wiring AngularJS with ExpressJS REST API
Implementing a RESTful product service
Wiring the product controller with new RESTful methods
Uploading product images
Testing RESTful APIs in AngularJS
End-to-end testing
Summary
Chapter 6: Managing User Authentication and Authorization
Getting started with authentication strategies
Understanding client-side authentication
Understanding server-side authentication
Authenticating with Facebook, Google, and Twitter
Summary
Chapter 7: Checking Out Products and Accepting Payment
Setting up the shopping cart
The checkout page and Braintree integration
Setting up Braintree endpoint and authentication
Creating an order
Summary
Chapter 8: Adding Search and Navigation
Adding search to the navigation bar
Adding product categories
Implementing the search and navigation functionality
Wrapping it up
Summary
Chapter 9: Deploying a Production-ready e-Commerce App
Building for production
Scaling web applications
Deploying the application to the cloud
Deploying applications in a multi-server environment
Performing stress tests
Production architecture for scaling NodeJS
Next steps on security
Summary
Chapter 10: Adding Your Own Features with High Quality
Planning a new feature
Testing the new feature
Features backlog
Deploying a new version of the app
Summary

Book Details

ISBN 139781785286551
Paperback224 pages
Read More
From 2 reviews

Read More Reviews