First app with Express.js

Now that you have configured almost everything, it is time to test express-generator, create your first Express.js web application, and see it working.

With express-generator, you just have to run the following command:

$ express --view=hbs my-first-express-app

This command will generate the whole Express.js application for you. Right after you run this command, the following similar message should be displayed:

   create : my-first-express-app   create : my-first-express-app/package.json   create : my-first-express-app/app.js   create : my-first-express-app/public   create : my-first-express-app/routes   create : my-first-express-app/routes/index.js   create : my-first-express-app/routes/users.js create : my-first-express-app/views ...

Get Hands-On RESTful Web Services with TypeScript 3 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.