Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 617 Bytes

README.md

File metadata and controls

62 lines (43 loc) · 617 Bytes

Letters-Chat

env 설정

SERVICE_PORT=[]
JWT_SECRET_KEY=[]
API_URL=[]
DB_HOST=[]
DB_user=[]
DB_password=[]
  • JWT SECRET KEY 설정
  • API URL 설정
  • DB 정보 설정

개발환경 Init

npm run env:init
  • MySQL 설치 및 Database 생성
  • Kafka
    • zookeeper
    • broker

DB Scheme 생성

  • Docker 설치 후
npm run db:migrate

migration 추가

npx babel-node migration.js add migration [migration name]

실행

채팅 서버 실행

npm run start

DB Writer 실행

npm run writer:start