Skip to content

Commit dc93af5

Browse files
authored
More beautiful
1 parent 5757590 commit dc93af5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,13 @@ const scriptJsContent = `// Your JavaScript code goes here`;
6363
fs.writeFileSync(path.join(frontendFolder, 'script.js'), scriptJsContent);
6464

6565
// Update app.js content to serve frontend files correctly.
66-
const appJsContent = `const express = require('express');
66+
const appJsContent = `// Your app.js file code goes here
67+
const express = require('express');
6768
const app = express();
68-
const port = 3000;
6969
const os = require('os');
70+
7071
const hostname = os.hostname();
72+
const port = 3000;
7173
7274
app.use(express.static('frontend'));
7375

0 commit comments

Comments
 (0)