[Pusher + NestJS] 서버 측 초기 세팅, 코드 예시
설치하기 npm i pusher 파일 만들기 nest g mo puhser // 모듈 파일 만들기 nest g co pusher // 컨트롤러 파일 만들기 nest g s pusher // 서비스 파일 만들기 나는 pusher 폴더를 따로 만들었다 config 파일 만들기 export const PUSHER_INFO = { APP_ID: '', KEY: '', SECRET: '', CLUSTER: '', USETLS : true } puhser 관련 config 파일은 다른 폴더에 따로 만들었다 import { SendNotificationDto } from "src/notification/dto/send-notification.dto"; import { ONESIGNAL_INFO } from "./co..
라이브러리, 프레임워크/Pusher
2022. 7. 8. 20:23