Refactoring the client folder

The client folder will have a pretty basic structure for any web application with folders to store CSS, JavaScript, and images files.

For this example, we will use the latest stable version of AngularJS to create the pages of our application:

  1. Inside the client folder, create the following folders:
    • css/
    • images/gallery/
    • js/
    • js/libs/
    • js/scripts/
    • views/

After creating all these folders, the client directory will look like the following screenshot:

Refactoring the client folder

Client folder structure

Adding the application views

Now is time to create the application views folder to store all the application templates:

  1. Inside the client/src folder, create ...

Get Node.js 6.x Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.