- 랜덤 대상 채팅 애플리케이션
- 채팅 데이터는 DB 상에 저장 관리한다.
- Nest.js
- MongoDB
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- socket_model
{
id: socket.id,
userName: 사용자 이름
}
- chattings_model
{
_id: 1120978jdk391012u (ObjectId),
user: {
_id: dalkshjdkj30192323j (ObjectId),
id: socket.id,
userName: 사용자 이름
},
chat: 채팅 내용
}