saturation75
New Coder
Hi, I'm new to node.js. I created an express site and am doing some initial tests. When I run my app and then try to pull up my hello.js page, it actually renders the exact code on the page from my browser, rather than the processed code. What am I doing wrong? If I go to my root localhost:3000 it pulls up my hello world res.send, but if I go directly to localhost:3000/hello.js it just shows the code....
My launch.json looks like this
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: Debugging in Visual Studio Code
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/hello/public/hello.js"
}
]
}
My launch.json looks like this
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: Debugging in Visual Studio Code
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/hello/public/hello.js"
}
]
}