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

    NestJS 배달 프로젝트 Microservice - gRPC - 40. OrderMicroservice 작업하기

     1. OrderMicroservice의 역할주문(Order) 처리 전담 서비스.User, Product, Payment 마이크로서비스와 gRPC 통신.주문 생성, 상태 변경(예: 배송 시작)과 같은 핵심 …

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC - 39.NotificationMicroservice 작업하기

     1. 프로젝트 설정ConfigModule을 활용해 전역 환경 변수를 설정합니다.HTTP_PORT, DB_URL, GRPC_URL 등을 Joi 스키마로 검증.Mongoose 연결: Notification 데이터 저장…

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC - 38.PaymentMicroservice 작업하기

      NestJS로 gRPC 기반 Payment Microservice 구축하기  이번 글에서는 NestJS에서 gRPC를 활용해 PaymentMicroservice를 구축하는 과정을 정리합니다. 이전…

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC - 37.Product Microservice 작업하기

      NestJS로 gRPC 기반 Product Microservice 구축하기 이번 글에서는 NestJS에서 gRPC를 활용해 ProductMicroservice를 구축하는 과정을 정리합니다. 이전에 Us…

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC - 36.UserMicroservice 작업하기

     NestJS에서 gRPC 기반 User Microservice 구축하기NestJS로 마이크로서비스를 개발할 때, gRPC를 활용하면 타입 안정성과 성능을 동시에 확보할 수 있습니다. …

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC - 35.Protoc 로 Compile 하기

      NestJS에서 Protobuf 컴파일하기: protoc로 gRPC 타입 생성하기 NestJS 기반의 프로젝트에서 gRPC를 활용하려면 .proto 파일을 TypeScript로 변환하는 과…

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC — 34. NodeJS gRPC 설치 하기 (2025년) , protoc 설치 방법

     1. gRPC 설치 (2025년) 1. 필수 패키지 설치 pnpm install @nestjs/microservices @grpc/grpc-js @grpc/proto-loader @nestjs/microservices → NestJS에서 gRPC 클라이…

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC — 33.Order Proto 작업하기

    1. Order Proto 정의 (order.proto) 주문과 관련된 gRPC 서비스 인터페이스를 정의합니다.syntax = "proto3"; package order; service OrderService { rpc Deliver…

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC — 32. Notification Proto 작업하기

      gRPC 기반의 Notification Proto 파일 작성NotificationService 정의 및 SendPaymentNotification RPC 구현NestJS에서 gRPC와 호환되도록 Controller + DTO + Service 구조 정…

  • Touch and Swipe
    Nodejs

    NestJS 배달 프로젝트 Microservice - gRPC — 31.Payment Proto 작업하기

     1. Payment Proto 정의 (proto 파일) 결제와 관련된 gRPC 서비스를 정의하기 위해 payment.proto 파일을 작성합니다.syntax = "proto3"; package payment; …