vmware-marketplacenodejs

Create a project using Express

Express is a high-performance Web development framework for Node.js inspired by Sinatra.

  • Installing it is as simple as executing the commands below:

      $ sudo npm -g install express-generator
    
  • Create a skeleton project by executing these commands. This will produce a new application in the projects/sample-application directory:

      $ mkdir -p projects
      $ cd projects
      $ express --view pug sample
    
  • Install dependencies using npm:

      $ cd sample
      $ npm install
    

This will download and install the required dependencies into a node_modules directory under your project folder.

Last modification December 21, 2022