본문 바로가기

전체 글

(68)
글로 쓸것 리스트! - JS를 더 깊이 이용해보자. : map 과 reduce를 써보자
좀더 코드를 있어보이게 짜자 (JavaScript) map 과 reduce를 써보자
웹서비스에 채팅 기능 추가. 웹서비스에 채팅을 넣어보자. How? socket.io? 외부 프로그램? socket.io 노드를 공부해봤다면 socket.io를 들어봣을 것이다. 'socket.io'는 주로 채팅, 피드 관련 기능에 쓰인다. 즉각적으로 반응해주는 기능이 필요한데에 쓰인다고 보면 된다. 그래서 socket.io를 이용해서 채팅 기능을 만들것인가? 시간적 여유가 있다면 만들겠으나. 시간적 여유가 없으니 이미 만들어져있는 채팅 플러그인을 쓰기로 정했다. channel.io zendesk etc.. 여러 종류가 있다. 한국에서는 channel.io의 'chennel talk'를 많이 쓰는 듯하다. 탈잉, 인프런 등등 엄청 많은 곳에서 사용하고 있다. 좋은 점이 한가지 더 있다. 채팅 상담은 주로 ..
이건 어떻게 하지? 글 / 이미지 / 동영상 을 섞어서 컨텐츠를 어떻게 만들고 데이터로 관리하지? - 텍스트에디터 소셜 로그인어떻게 하지? - passport 용량 큰 데이터는 어디다 저장하지? - S3
ㅇㅇ 글1 이미지 1 글2 이미지2
Populate Models Populate in mongoose Situation: In many times, Models need to other model's data. For example, A 'Book' model needs 'Author' model. In this case we can define author field in Book model. Or we can bring author models using POPULATE method. If you dont know 'populate' look here "
Excuting some work on same time everyday. [Scheduling] Scheduled work Situation : Need to do some work on same time for every day, In our site, we need to bring upcomming match datas everyday How to : use "node-schedule" What is node-schedule Node Schedule is for time-based scheduling, not interval-based scheduling. There is another tool can use for scheduling. That is "setInterval". "setInterval" is used for example: "run this function every 5 minu..
Divide DB by the 'env' Divide Database by the environment Situation: I want to use another DB for TDD. Using just one DB for any enviroment is not that good. because anyone or any team mates can delete or edit datas without discussion. Before check enviroment status, We need to know how the environment managed. Node.js allow us to check what is the environment is now. How? with this. process.env.NODE_ENVAnd also we ca..