-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserver.js
More file actions
24 lines (15 loc) · 700 Bytes
/
server.js
File metadata and controls
24 lines (15 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
console.log("Welcome to Intro to Node!");
// Create an Express app
// https://expressjs.com/en/starter/hello-world.html
// Set template engine to Pug
// http://jade-lang.com/
// https://expressjs.com/en/guide/using-template-engines.html
// Use bodyParser to help POST data
// Define controllers to handle routes
// Define static routes to serve static assets like images, styles, etc.
// https://expressjs.com/en/starter/static-files.html
// Define page routes to specify which URLs will be handled by which controllers
// Define API routes to serve up application data
// Define a catch-all 404 route
// https://expressjs.com/en/guide/routing.html
// Start your Express app up on port 3000