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:
- Create a folder called
public
, and inside of it, create the following folders:/images
/javascripts
/stylesheets
/uploads
/ videos
- Create a folder called
server
, and inside of it, create these folders:/config
/controllers
/models
/views
- At this time, our project has all the basic directories and files; let's install the Node modules from
package.json
. - 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:
Let's starting creating the ...
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.