O'Reilly logo

Web Application Development with MEAN by Robert Onodi, Adrian Mejia, Amos Q. Haviv

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Laying out the e-commerce MVP

Now we are going to take leave of the boilerplate code and start writing our own. In this first section, we are going to build the marketplace.

Products

So, let's create the page that will hold all the products. We will use the Yeoman generator again to automate the tasks of creating the new files, and focus on customizing it to our needs. Go to the terminal and execute the following command:

$ yo angular-fullstack:route products

? Where would you like to create this route? client/app/
? What will the url of your route be? /products
   create client/app/products/products.js
   create client/app/products/products.controller.js
   create client/app/products/products.controller.spec.js
 create client/app/products/products.html ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required