Book Image

MEAN Blueprints

By : Robert Onodi
Book Image

MEAN Blueprints

By: Robert Onodi

Overview of this book

The MEAN stack is a combination of the most popular web development frameworks available—MongoDB, Angular, Express, and Node.js used together to offer a powerful and comprehensive full stack web development solution. It is the modern day web dev alternative to the old LAMP stack. It works by allowing AngularJS to handle the front end, and selecting Mongo, Express, and Node to handle the back-end development, which makes increasing sense to forward-thinking web developers. The MEAN stack is great if you want to prototype complex web applications. This book will enable you to build a better foundation for your AngularJS apps. Each chapter covers a complete, single, advanced end-to-end project. You’ll learn how to build complex real-life applications with the MEAN stack and few more advanced projects. You will become familiar with WebSockets and build real-time web applications, as well as create auto-destructing entities. Later, we will combine server-side rendering techniques with a single page application approach. You’ll build a fun project and see how to work with monetary data in Mongo. You will also find out how to a build real-time e-commerce application. By the end of this book, you will be a lot more confident in developing real-time, complex web applications using the MEAN stack.
Table of Contents (13 chapters)
MEAN Blueprints
About the Author
About the Reviewer

Data modeling

In our application, an auction is a special event in which users—or more precisely, bidders—can bid on an item available for sale. An item is a product from the e-commerce platform, but one that retains only the necessary information to be displayed to the user. Let's discuss each model in more detail.


An auction is going to hold all the necessary information about the event. As discussed earlier, we are going to implement an English auction, in which we are going to sell goods from our main e-commerce application.

An English auction is open-cry, which means that everyone is aware of each bid. The winner will pay the winning price. Each bid is going to increase the price of the goods, and the next bidder has to pay more in order to win the auction.

All auctions will have a reserved price, a starting value below which we are not going to sell our product. In other words, it is the lowest acceptable price by the seller.

To simplify things, we are going to set an end time for...