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

Scaffolding the application

As already mentioned before, we use as tools as possible that streamline our development process of web applications.

We will start from scratch, using a Yeoman generator called MEAN.JS.

Let's begin; remember that you can download the sample files and follow our evolution. However, I strongly recommend that you follow refactoring step by step for a better understanding.

  1. Create a folder called meanjs-generator, open the terminal inside it, and type:
    npm install -g generator-meanjs
    

    The -g key means general, and you'll need to be the administrator of your machine. Now, we have what we need: the generator.

  2. Type the yo meanjs command and follow the instructions and fill in the answers; the text in light blue is the answer that ...

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