본문 바로가기

전체 글

(24)
멀터 저장위치 /슬래시 하나는 c부터 :/저장소 이름 하면 내가 프로젝트 시작한 study/back 가 시작점임.
노드 회원가입, if else문 중복 값 전송에러. Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client 노드에서 if else문을 작성했는데 이런 에러 메세지가 떴다. Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:372:5) at ServerResponse.setHeader (node:_http_outgoing:576:11) at ServerResponse.header (C:\Users\SJ\Desktop\elice\study\back\node_modules\express\lib\res..
index.js에는 어떤 내용이 들어가야 할까? 프로젝트 시작시 보통 index.js 파일부터 시작하게 설정이 되어 있다. 자세한 내용은 전에 내가 쓴 블로그 내용 참고. https://koreankoder.tistory.com/2 프로젝트 프로세스 기록(JavaScript) 완전 무無, 백지상태에서 유有를 만들어내는 프로젝트의 첫 시작. 그 과정을 기록해보고자 한다. 이것은 순전히 나의 기록용/공부용이며, 프로젝트를 하며 잊어버리는 과정들을 적어놓으려고 koreankoder.tistory.com 그렇다면 제일 처음 서버가 시작하는 index.js 파일에는 보통 어떤 내용이 들어가야 할까? 이건 첫번째 프로젝트에서 썼던 index.js 파일이다. 여기까지는 주어졌던 부분들인데, 핵심적으로 2개의 기능이 들어가 있다. ① (핵심 기능모음인) app.js..