Book Image

Learning Single-page Web Application Development

Book Image

Learning Single-page Web Application Development

Overview of this book

Table of Contents (15 chapters)
Learning Single-page Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 you must complete, as shown in the following screenshot:

    If you accompany the process on your terminal, you can see that the Bower also already executed these commands and installed all the AngularJS scripts.

    Tip

    All Yeoman generators have their own...