[■KodeJUN] [7] Node.js 웹서버 express 모듈: get
페이지 정보

관련링크
본문
Installation
Either through cloning with git or by using npm (the recommended way):
npm install -g nodemon
==============================
const express = require('express')
const app = express()
app.listen(3000, () => {
console.log('Server is running on port 3000')
})
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html')
})
app.get('/about', (req, res) => {
res.send('about.. <br>abo2222ut.. <br>about.. <br>about.. ')
})
Either through cloning with git or by using npm (the recommended way):
npm install -g nodemon
==============================
const express = require('express')
const app = express()
app.listen(3000, () => {
console.log('Server is running on port 3000')
})
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html')
})
app.get('/about', (req, res) => {
res.send('about.. <br>abo2222ut.. <br>about.. <br>about.. ')
})
[■KodeJUN] [11] Node.js 웹서비스 로그인 회원가입 구현하기 파트 2 - 2025-02-09 (로봇)
[■KodeJUN] [6] Node.js npm express - 2025-01-28 (로봇)
댓글목록
등록된 댓글이 없습니다.