- npm init -y
- npm install express
- npm install express-es6-templates-engine
- npm install --save-dev nodemon
- In the
package.jsongo underscriptsand add the"Dev": "nodemon index.js",- This will allow for you to run nodemon on just the folder with the command
npm run dev
- This will allow for you to run nodemon on just the folder with the command
- In the terminal use code
mkdir templatesto makeTemplatesfolder in the project folder.- This will allow for you to make your templates file within that folder that can be called using
res.renderin theindex.jsfile.
- This will allow for you to make your templates file within that folder that can be called using
- In order to make files from your terminal use the code
touch index.jsor whatever file you would like to make ie..htmlfor your templates folder.
- See attached
express-templet.jsfile