Book Image

Building an E-Commerce Application with MEAN

By : Adrian Mejia
Book Image

Building an E-Commerce Application with MEAN

By: Adrian Mejia

Overview of this book

<p>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.</p> <p>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.</p> <p>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.</p> <p>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.</p> <p>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.</p>
Table of Contents (17 chapters)
Building an E-Commerce Application with MEAN
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, you got familiar with the directory structure while going through the main concepts of AngularJS. We learnt that directives are the way in which AngularJS extends the HTML code. Modules are preferred for keeping the code organized. Routers allow us to define URLs and bind them to controllers and templates. Controllers are the glue between services/factories (model) and the templates (view). Templates are the HTML codes where we can use expressions and variables defined through $scope in the controller. Finally, filters are used in templates for modifying the output of strings.

We have created the first part of our frontend e-commerce app while explaining each of the components used. We now have the marketplace which shows all the products and also provides the CRUD functionality to add, remove, and edit products.

In this chapter, we provided the CRUD functionality using data in a predefined array from the product factory. However, in the next chapter, we are going...