Skip to Content
Node.js 6.x Blueprints
book

Node.js 6.x Blueprints

by Fernando Monteiro
August 2016
Intermediate to advanced
376 pages
6h 33m
English
Packt Publishing
Content preview from Node.js 6.x Blueprints

Adding server folders

To finish the basic creation of our application, we will now create the directories that store controls, the templates, and other files of the application:

  1. Create a folder called public, and inside of it, create the following folders:
    • /images
    • /javascripts
    • /stylesheets
    • /uploads
    • / videos

  2. Create a folder called server, and inside of it, create these folders:
    • /config
    • /controllers
    • /models
    • /views

  3. At this time, our project has all the basic directories and files; let's install the Node modules from package.json.
  4. Open your terminal/shell at the root project folder and type the following command:
    npm install
    

    The project folder will have the following structure after performing steps 1, 2, and 3:

    Folder structure

    Let's starting creating the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Node.js Development

Learning Node.js Development

Andrew Mead
VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward
Your First Week With Node.js, 2nd Edition

Your First Week With Node.js, 2nd Edition

James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl

Publisher Resources

ISBN: 9781785888434Supplemental Content