Home > Web Front-end > JS Tutorial > A guide to making a simple website with node express jade_node.js

A guide to making a simple website with node express jade_node.js

WBOY
Release: 2016-05-16 16:30:18
Original
1863 people have browsed it

1. Create the project folder: my_jade

2. Download express and jade packages locally. I personally don’t like to download them globally, I like to download them to 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 browser:

Looking at an example without using page layout:

Modify index.js

Modify app.js

Run app.js to preview in the browser:

Clicking submit will trigger ajax. This article will end here first, and the follow-up work will be carried out later. I just started this content, and I am not very familiar with it yet, haha.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template