Nodejs

  • Touch and Swipe
    Nodejs

    7 ★★★ Node js 초기 셋팅

     https://expressjs.com/en/starter/generator.html 위 방법데로 시작하면 다음과 같은 에러 no default engine was specified and no extension was provided 해결 = >&n…

  • Touch and Swipe
    Nodejs

    6 Node.js - 패키지 매니저와 PM2

        1. PM2 기본 사용방법 2.https://www.tutorialbook.co.kr/entry/PM2-를-이용하여-NodeJS-프로세스-관리하기 pm2 start app.js  MonitoringMo…

  • Touch and Swipe
    Nodejs

    5 NodeJS Express 설치 및 서비스 개발

      Express-generate 를 이용하여 프로젝트 구성하기 express-generate 를 이용하기 위해 npm install express-generate -g 를 통해 express-generate 를 설치1) $&nb…

  • Touch and Swipe
    Nodejs

    5 NodeJS nodemailer 모듈 로 메일보내기

     Nodemailer :: Nodemailer 설치1. npm install nodemailer nodemailer-smtp-pool --save1) gmail2. test.jsvar nodemailer = require('nodemailer'); var smtpPool=require('nodemai…

  • Touch and Swipe
    Nodejs

    5 Node.js 설치후  db 연동

      1. 노드 설치https://nodejs.org/ko/download/  2. Express-generate 를 이용하여 프로젝트 구성하기$ npm install express-generator -g3. express {APP_NAME} 명령어…

  • Touch and Swipe
    Nodejs

    5 Node.js 에서 API 서버 만들기

      1 . Node.Js 설치후  Db 연동http://macaronics.net/index.php/m03/nodejs/view/1800  2.  axios  및  uuid-apikey ( 키생성 )설치$npm i axios -…

  • Touch and Swipe
    Nodejs

    5 Node.js 스케줄러

     설치$npm i node-schedule --save node-schedule - npm (npmjs.com) node-schedule.js const schedule = require("node-schedule"); let sheduleObj = null const set = (s)…

  • Touch and Swipe
    Nodejs

    5 NodeJS 크롤링

     임의 디텍토리 생성$npm init -y 모듈 설치$npm install axios cheerio 1) axios - npm (npmjs.com)2) cheerio - npm (npmjs.com)  crawling.jsconst axios = requ…

  • Touch and Swipe
    Nodejs

    5 Nodejs 세션관리 로그인 로그아웃 - 32

      패키지 json 파일을 만든다.# npm init-대문자 안 된다.# express package.json  이름 충돌 주의#npm install express --save #npm install express-session --sa…

  • Touch and Swipe
    Nodejs

    5 Nodejs 데이터베이스 사용(mongodb )- 35

       Windows에 MongoDB 설치하기..신규하 2014.05.26 18:19윈도우에 MongoDB를 설치 하면서, 내용을 약간 정리해 봅니다. 1. 다운로드 http://www.…

  • Touch and Swipe
    Nodejs

    NextJs class-validator 종합 정리

      1. @IsNotEmpty()빈 값(Empty)을 허용하지 않음"", null, undefined가 들어오면 검증 에러 발생@IsOptional()과 함께 사용하면, 필드가 존재할 경우에…

  • Touch and Swipe
    Nodejs

    vscode 에서 nestjs 디버그 설정 launch.json 만들기

      vscode  -> launch.json{ "version": "0.2.0", "configurations": [ { "type": "node", "request": &q…

  • Touch and Swipe
    Nodejs

    ★NestJS 기본 예외 및 반환 형식 정리 및 스프링부트처럼 직접 예외 반환 형식 커스텀하기★ -express, nestjs, spring boot, django

     NestJS 기본 예외 및 반환 형식 정리 NestJS에서는 다양한 HTTP 예외를 제공하며, 예외 발생 시 특정한 형식의 JSON 응답을 반환합니다. 대표적인 예…

  • Touch and Swipe
    Nodejs

    express and mongodb api 개발 연동 설정

     이 코드들은 Express와 MongoDB를 사용하여 API를 개발하는 설정을 보여줍니다. 주요한 인증, 토큰 처리, MongoDB 연동 및 passport를 통한 인증 전략 설정 등…

  • Touch and Swipe
    Nodejs

    node.js express 서버 백그라운드 실행 forever 명령어

      forever 모듈 설치npm install forever -g서버 실행forever start --minUptime 1000 --spinSleepTime 1000 -c "node app.js" ./ 서버 작동 확인 피드&n…

  • Touch and Swipe
    Nodejs

    Node.js 교과서 [ZeroCho] - 2

      강의 목록 : https://www.youtube.com/playlist?list=PLcqDmjxt30RsbFOspFG3EsxMwhFSnGFLw 소스 :  https://github.dev/braverokmc79/Nodejs-textbook    &nb…

  • Touch and Swipe
    Nodejs

    NestJS 기본 강의 [John Ahn] - ★ 1

      인프런   ==>    https://www.inflearn.com/따라하는-네스트-제이에스#curriculum유튜브 강의 목록 : https://www.youtube.com/playlist?list=…

  • Touch and Swipe
    Nodejs

    Node.js 교과서 [ZeroCho] -1 시퀄라이즈(sequelize)와 MySQL 설치

      강의 목록 : https://www.youtube.com/playlist?list=PLcqDmjxt30RsbFOspFG3EsxMwhFSnGFLw   1. ZeroCho의 Node.js 교과서 강좌 0.인트로    &n…

  • Touch and Swipe
    Nodejs

    Nodejs nodemon 설정 - ★

      1.nodemon 설치$npm install  nodemon --save-dev  2. concurrently 설치npm i concurrently  3. npm run dev 한줄 명령어로 api 서버와 프론트 서버&…

  • Touch and Swipe
    Nodejs

    Node.js - JWT 인증 처리

        소스 : https://github.dev/WebDevSimplified/JWT-Authentication https://github.com/braverokmc79/Nodejs-jwt-Authentication-Tutorial   1.설치 :$ npm in…