![]() To test the app, first run npm install to install all the necessary npm modules. The command above will render something like the image below: As an example, I’m using nodejs-docker-express. Of course, you’ll need to replace with your application name. Our demo version will use the latest version of Express, v4.18.1. The -view=pug command tells the generator to use the Pug view engine, and the -git parameter asks it to add a. To analyze the command we ran, we asked the Express generator to generate an Express app. To do so, we’ll run the npx script below: npx express-generator -view=pug -git To generate our demo application, we’ll use the Express application generator. Restart on file change: nodemon to the rescueĬreate a new Express project with Express generator. ![]()
0 Comments
Leave a Reply. |