Directories of an express application

express_directory

The directory structure of a typical express application is,

  1. Public: – public assets are stored in this folder. Inside this folder, there are subfolders for images, javascripts and style sheets.
  2. Routes:-  express is best known for quick routing, the routes folders store the routing information.
  3. Views:- views folder stores view files.  You may find jades, jhtml or ejs files.

Also node_module folder has the modules for the application, and app.js is the main entry file for your application.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.