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
app.js
file content.