first node.js

한결·2021년 5월 9일
0
//express ㅅㅏ용방법
const express = require('express');
const app = express();

//주소만들기(router)
app.get("/", function(req,res){
    res.send('Hello World'); //이 값을 출력함(html)
})

//3000번 포트로 서버실행
app.listen(3000, function(req,res){
    console.log("서버가 실행중");
})
profile
개발

0개의 댓글

Powered by GraphCDN, the GraphQL CDN