본문 바로가기 메뉴 바로가기

ABBO 기술 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

ABBO 기술 블로그

검색하기 폼
  • 분류 전체보기 (465)
    • AI Trend (2)
    • Git (12)
    • Server (242)
    • Client (69)
    • Apple (31)
    • Study (109)
  • 방명록

node api (1)
Node Express를 적용하여 통신하기

app.js const server = app.listen(port, () => { console.log('Server is started. port ${port}.'); }); const db = { database: "dev", connectionLimit: 10, host: "192.168.0.1", user: "root", password: "1111" }; const dbPool = require('mysql').createPool(db); app.post('/api/login', async (req, res) => { }); 데이터베이스에 연결 준비를 합니다. sql.js module.exports = { findAllUser: { query : `select * from user` }, fi..

Server 2021. 2. 8. 17:54
이전 1 다음
이전 다음
공지사항

Blog is powered by Tistory / Designed by Tistory

티스토리툴바