일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- vuex
- MySQL
- sass
- ES6
- webpack
- 쉬운설명
- Wecode
- JavaScript
- 댓글달기
- HOC
- v-html
- react
- TypeScript
- 자바스크립트
- Vue transition
- Vue
- CSS
- 자료구조
- Vue.js
- event
- jsx
- input
- App.vue
- scss
- storybook
- 리액트
- nodejs
- mapGetters
- State
- express
- Today
- Total
목록Node (2)
익명의 개발노트
1. mysql 모듈 설치 npm install mysql 2. 모듈 불러와서 결합하기. var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', port : 3306, //mysql 기본포트, 서버 포트쓰면 안된다! user : 'root', password : '********', database :'jsman' //데이터베이스 어떤걸로 쓸껀지. }); connection.connect(); connection.query('select * from user', function(err, rows, fields){ if(!err){ console.log('The solution is: ', rows..
1. express : npm 모듈중에 하나이며, Node Js 에서 서버 프로그래밍에 필요한 기능을 훨씬더 편하게 해주는 기능이 있다. 1) 일반적인 nodeJS 에서 서버 여는 방법. const http = require('http'); const hostName = '127.0.0.1';const port = 80; http.createServer((req, res) => { res.writeHead(200,{'Content-Type' : 'text/plain'}); res.end('Welcome');}).listen(port, hostName,()=>{ console.log(`Server running at http://${hostName}:${port}/`);}); 2) Express에서 서버를..