O'Reilly logo

Node.js 6.x Blueprints 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 application folder

Our refactoring process includes two steps.

First, let's create a directory for the application source files, such as JavaScript, SCSS, and images files.

In the second step, we will create some directories within the client folder to receive our scripts.

Let's create the source folder for images, libs, scripts, and scss files.

Creating the images folder

In this folder, we will store the images before processing an optimization technique using imagemin-cli.

  1. Inside the root project, create a folder called src.
  2. Within the src folder, create a folder called images.
  3. Within the images folder, create a folder called gallery.
  4. Download the sample images file for chapter 09, Building a Frontend Process with Node.js and NPM from ...

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