Node.js의 HTTP 모듈을 이용해서 TODO앱을 만드는 법.http 모듈을 import 한다.const http = require("http");createServer를 통해 서버를 만들 수 있다.const server = http.createServer()만든
Express는 Node.js의 서버 프레임워크이다.아래와 같이 터미널에서 실행하여 Express 모듈을 설치해야 한다.npm init -ynpm install express한편 앞서 헤더를 통해 해결했던 CORS 이슈를 cors 모듈을 이용한 미들웨어로 해결할 수 있
https://nextjs.org/docs/pages/api-reference/create-next-appnpx create-next-app@latest 혹은 yarn create next-app을 통해 설치를 진행할 수 있다.prompts가 나오는데 아래와
Next JS App Router로 TODO와 같은 방식으로 next-js-postgres-todo 폴더에서 아래와 같이 입력한다.$ yarn create next-app .success Installed "create-next-app@14.0.4" with binar