node.js (https://nodejs.org/ko/download/) 압축파일 node-v14.17.3-win-x64.zip 다운 받아서 C:\usr\local\node-v14.17.3-win-x64 폴더에 압축 풀기 경로 추가 : C:\usr\local\node-v14.17.3-win-x64 npm 버전 확인 C:\Users\bluesanta>npm -v 6.14.13 yarn 설치 C:\Users\bluesanta>npm install -g yarn > yarn@1.22.10 preinstall C:\usr\local\node-v14.17.3-win-x64\node_modules\yarn > :; (node ./preinstall.js > /dev/null 2>&1 || true) C:\usr\..
출처 NodeJS Passport login script with MySQL database node.js 사용자에게 메시지 날리기 connect-flash : 네이버 블로그15장 passport 모듈을 이용한 사용자 인증 (2) :: GoodBye World /config/dbHelper.js const mariadb = require('mariadb'); var config = require('./db_config'); // ./는 현재 디렉토리를 나타냅니다 const pool = mariadb.createPool({ host: config.host, port: config.port, user: config.user, password: config.password, database: config.da..
출처 Getting Started With the Node.js Connector - MariaDB Knowledge BaseGitHub - jareddlc/node-datatables: DataTables server-side script for Node.jsnode.js와 MariaDB 연결하기 (조회 테스트) - 삵 (sarc.io) Connector/Node.js Promise API - MariaDB Knowledge BaseNode.js Mysql(MariaDB) 모듈화하기 /config/db_config.js module.exports = (function() { return { host: "localhost", port : 10312, user: "root", password: "sqldb..
출처 [node.js] express - 라우터, 컨트롤러 나누기 /api/user/user.ctrl.js /* api 로직 */ let users = [ {id: 1, name: 'jinbro'}, {id: 2, name: 'jinhyung'}, {id: 3, name: 'park'} ]; let index = function(req, res) { if(!req.query.limit){ res.json(users); } else { const limit = parseInt(req.query.limit, 10); if(isNaN(limit)){ return res.status(400).end(); } res.json(users.slice(0, limit)); } }; let read = function(..
출처 2. 기초문법 · node.js 서버구축하기 함수 표현식 vs 함수 선언식 • Captain Pangyo Node.js 기초와 모듈 (내장 모듈, npm, 사용자정의 모듈) 변수 출처 : 2. 기초문법 · node.js 서버구축하기 var name; // 변수 선언 name = '홍길동'; // 변수 정의 var num2 = 3; // 변수 선언과 정의 함수 출처 : 함수 표현식 vs 함수 선언식 • Captain Pangyo 함수 선언식 - Function Declarations // 함수 선언 function funcDeclarations() { return 'A function declaration'; } funcDeclarations(); // 함수 호출 함수 표현식 - Function Ex..
출처 조대협의 블로그 :: 빠르게 훝어 보는 node.js - #14 - Passport를 이용한 사용자 인증 구축node.js - passport.js passport.initialize() middleware not in use - Stack OverflowNode.js + passport.js 를 이용한 소셜 로그인 구현 (페이스북, 깃허브, 구글)Passport를 이용한 네이버, 카카오, 페이스북 로그인 - Yun Blog | 기술 블로그 /app.js // 모듈 추가 const passport = require('passport'); const session = require('express-session'); var bodyParser = require('body-parser'); // .....
출처 Learn Rest API using Express.js and MySQL DB | Codementor Node.js 8.x 설치 $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - $ sudo apt-get install -y nodejs Node.js 버전 확인 $ node --version v8.15.0 Express 설치 $ sudo npm install -g express + express@4.16.4 added 48 packages from 36 contributors in 16.445s Express 애플리케이션 생성기 설치 $ sudo npm install express-generator -g /usr/bin/expres..
- Total
- Today
- Yesterday
- 지스타2007
- flex
- Java
- NDK
- MySQL
- BPI-M4
- 튜닝쇼 2008
- KOBA
- JavaScript
- koba2010
- ble
- 레이싱모델 익스트림 포토 페스티벌
- ffmpeg
- Xcode
- 전예희
- 서울오토살롱
- Spring MVC
- Mac
- android
- SAS
- ubuntu
- sas2009
- Linux
- Spring
- Delphi Tip
- 송주경
- 일본여행
- 동경
- Delphi
- oracle
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |