1. Create a project folder: my_jade
2. Download express and jade packages locally. I personally don’t like downloading them globally, I like to download them into the project folder.
3. Create relevant folders and files.
index.js:
style.css
gys.jade code:
index.jade:
layout.jade
app.js
Run app.js:node app.js;
Preview in your browser:
Looking at an example of not using page layout:
Modify index.js
Modify app.js
Run app.js to preview in the browser:
Clicking on submit triggers ajax. Let’s stop here for this article. We will continue to follow up the work. I just started this content and I am not very skilled yet, haha.