O'Reilly logo

Learning Single-page Web Application Development by Fernando Monteiro

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

Refactoring the API

Let's see how we can create both tasks at the same time with the help of the subgenerator CRUD module:

  1. In the terminal, type the following command:
    yo meanjs:crud-module speakers
    

    Note that the last word is the name we give to the module that will be created.

    Tip

    More information about the MEAN.JS generator and sub-generator CRUD can be found at http://meanjs.org/generator.html#crud-module.

    After the process, we have the following information on the terminal window:

    Refactoring the API

    Note that we respond to the three optional questions while creating the new module: whether we want to include a folder for CSS and images and two directories for Angular, ...

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