Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 6. Introducing Express > Exploring Express

Exploring Express

If you look in the folder for the example Express site that you just created, you see the following structure:

• app.js

• node_modules

• package.json

• public

• routes

• views

app.js

app.js is the application file used to start the application. It contains configuration information for the application.

node_modules

node_modules holds any node modules that are defined in package.json and have been installed.

package.json

package.json gives information on the application, including the dependencies that should be installed for it to run.

public

The public folder serves the application to the Web. You will find stylesheets, javascripts, and images in this folder. You will not find any application logic in this folder; this is a common pattern to ensure web application security.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint