Backend 서버 연결_ http -> express / 미들웨어 (복습)
[http 모듈로 웹서버 만들기] REST : get post put delete 받아오기 보내기 수정하기 삭제하기 구현 const http = require('http'); const fs = require('fs').promises; const users = {}; //#req 클라이언트의 요청 들어옴# #res 서버가 클라이언트한테 반환할 것 # const server = http.createServer(async (req, res) => { try{ if(req.method === 'GET'){ if(req.url ==='/'){ const data = await fs.readFile('./restFront.html')//then의 파라미터값. await에 담긴다 res.writeHead(200,..
Web/Backend_서버구현하기
2022. 4. 19. 16:50
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- VR
- Python
- MQTT
- node.js
- DeepLeaning
- RNN
- 라즈베리파이
- krea
- ai image generator
- Unity
- Arduino
- docker
- TouchDesigner
- imgtoimg
- colab
- Midjourney
- google ai studio
- sequelize
- oculuspro
- three.js
- CNC
- runwayai
- AI
- Java
- ai film
- 후디니
- 유니티
- Express
- houdini
- opencv
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함
반응형