목록Node (232)
투케이2K

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [방법 설명] [app.js : 소스 코드] // ---------------------------------------------------------------------------------------------- const express = require('express') const app = express() app.set('view engine', 'ejs') // [Page] : [Render] app.set('views', './views') // [Page] : [Render] app.use(express.json()) // [Http] : [Body] : [Json] // -------------..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [방법 설명] [app.js : 소스 코드] // ---------------------------------------------------------------------------------------------- const express = require('express') const app = express() app.engine('html', require('ejs').renderFile) // [http] : [Page] : [Render] app.set('view engine', 'ejs') // [http] : [Page] : [Render] app.use(express.json()) // [Http..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [app.js : 소스 코드] // ---------------------------------------------------------------------------------------------- const express = require('express') const app = express() app.use(express.json()); // [Http] : [Body] : [Json] // ---------------------------------------------------------------------------------------------- // [Delete] : Path = [/delete] ..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [app.js : 소스 코드] // ---------------------------------------------------------------------------------------------- const express = require('express') const app = express() app.use(express.json()); // [Http] : [Body] : [Json] // ---------------------------------------------------------------------------------------------- // [Patch] : Path = [/patchBody..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [app.js : 소스 코드] // ---------------------------------------------------------------------------------------------- const express = require('express') const app = express() app.use(express.json()); // [Http] : [Body] : [Json] // ---------------------------------------------------------------------------------------------- // [Put] : Path = [/putBody] : ..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [app.js : 소스 코드] // ---------------------------------------------------------------------------------------------- const express = require('express') const app = express() app.use(express.json()); // [Http] : [Body] : [Json] // ---------------------------------------------------------------------------------------------- // [Post] : Path = [/postBody] ..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [app.js : 소스 코드] // ---------------------------------------------------------------------------------------------- const express = require('express') const app = express() // ---------------------------------------------------------------------------------------------- // [Post] : Path = [/postQuery] : http://localhost:3000/postQuery?id=admin app.post(..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [app.js : 소스 코드] // -------------------------------------------------------------------- const express = require('express') const app = express() // -------------------------------------------------------------------- // [Get] : Path = [/get] : http://localhost:3000/get?id=admin app.get('/get', function (req, res) { console.log("") console.log("=======..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [방법 설명] { "name": "com.nodetestproject", "version": "1.0.0", "description": "nodetestproject", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "nodetestproject" ], "author": "admin", "license": "ISC", "dependencies": { "express": "^4.18.2" } } const express = require('exp..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [방법 설명] 1. VSCode 다운로드 사이트 접속 파일 다운로드 수행 >> 사이트 주소 : https://code.visualstudio.com/ Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. code..

[개발 환경 설정] 개발 툴 : VS CODE 개발 언어 :NodeJs [방법 설명] 1. Node Js 사이트 접속해서 운영 체제 환경에 맞게 파일 다운로드 실시 사이트 주소 : https://nodejs.org/en/download/current Download | Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 2. 다운로드 받은 파일 실행 및 Node Js 설치 진행 3. 맥북에서 터미널 실행 후 >> 설치 된 node , npm 버전 확인 수행 >> 명령어 : node -v / npm -v