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

    ✅nodej 구글 번역 프록시를 사용한 무제한 자동 번역, 유튜브 자막 추출기

     유튜브 자막 추출후  구글 번역기로 한국어 번역  텍스트 출력 라이브러리 설치:npm install youtube-captions-scraper @vitalets/google-translate-api http…

  • Touch and Swipe
    Nodejs

    ❤️Strapi에서 회원가입 및 로그인 구현 + 사용자 역할(Role) 설정 방법 , Access Token 만료 시간 설정

     Strapi에서 회원가입 및 로그인 구현 + 사용자 역할(Role) 설정 방법1. 기본 개념 이해Strapi는 기본적으로 사용자 인증(Authentication)과 권한(Role-based Acces…

  • Touch and Swipe
    Nodejs

    Strapi API 한국어 설정

      1)config/plugins.tsexport default () => ({ // i18n 플러그인 설정 i18n: { enabled: true, // i18n 플러그인 활성화 config: { defaultLocale: 'ko…

  • Touch and Swipe
    Nodejs

    nestjs passport 연동

     NestJS에서 passport-local 전략을 사용할 때 필요한 패키지를 pnpm으로 설치 pnpm add passport passport-local @nestjs/passport pnpm add -D @types/passport-local  …

  • Touch and Swipe
    Nodejs

    Strapi API Query Parameters

      https://docs.strapi.io/cms/api/document-service#parameters-5  Strapi API Query ParametersStrapi의 API에서 사용할 수 있는 주요 쿼리 파라미터(Query Parameters) 옵…

  • Touch and Swipe
    Nodejs

    Nestjs Pipe 파이프

       NestJS 파이프(Pipe)란?파이프는 NestJS에서 입력 데이터를 가공하거나 검증하는 역할을 하는 클래스이다. 컨트롤러가 핸들러를 실행하기 전…

  • Touch and Swipe
    Nodejs

    ★NestJs QueryBuilder - NestJS에서 TypeORM의 QueryBuilder를 사용, Transaction 적용하기

     1) ex1 const users = await userRepository.createQueryBuilder("user") .leftJoinAndSelect("user.profile", "profile") .where("user.isActive = :isAc…

  • Touch and Swipe
    Nodejs

    Express + TypeScript 적용 방법

     ✅ Express + TypeScript 적용 방법1️⃣ TypeScript 환경 설정프로젝트 디렉토리에서 TypeScript 및 필요한 패키지 설치npm init -y # (선택) package.json 생성 npm in…

  • 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…