일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- treenode
- priority_queue
- Callback
- map
- nodeJS
- axios
- leetcode
- routes
- queue
- array
- route
- event
- Navigation
- UE5
- bit
- node.js
- 비트연산
- css
- count
- c++
- JSX
- Context
- DP
- state
- server
- component
- Props
- BinaryTree
- MySQL
- React
- Today
- Total
목록nodeJS (2)
우사미 코딩

나는 동빈나 선생님의 8강 강의를 듣는 중인데 옛 버전이라 현재 버전에 맞게 쩜 업그레이드 함 1. server.js에서 /api/customer를 요청했을 때 데이터 반환하도록 수정 function createData(id, image, name, birthday, gender, job) { return { id, image, name, birthday, gender, job }; } app.get('/api/customer', (req, res) => { res.send([ createData(1, "https://placekitten.com/64/64", "fufubao", "200720", "girl", "student"), createData(2, "https://placekitten.com/6..

https://www.youtube.com/watch?v=YO9CqrnxbFU&list=PLRx0vPvlEmdD1pSqKZiTihy5rplxecNpz&index=7 나동빈 쓰앵님의 강의 관련 1. 내 app의 모든 코드를 root/client 생성해서 옮긴다 2. gitignore파일은 root에 다시 복사해준다 3. server.js를 생성한다 const express = require('express'); const bodyParser = require('body-parser'); const app = express(); const port = process.env.PORT || 3001; app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ext..