계속 업데이트 중
Node.js express로 서버 만들 때 다운 순서
간략히 ->
1. mysql, node.js, JS 설치
2. JS terminal 에서는
npm init
npm install express
npm install nunjucks chokidar
npm install body-parser
npm install mysql
npm install dotenv
3. mysql prompt 창에서는 source +path;
*mysql 다운 / 명령어 정리
mySQL MariaDB 다운로드 / 사용법 / 명령어 총 정리 / 날짜 함수 date_format() now()
계쏙 업데이트 중 mariaDB 다운로드 및 설치 Mariadb 설치 방법 offbyone.tistory.com/199 Windows 10에 MariaDB 설치하기 개발용으로 Windows 10 PC에 MariaDB 를 설치해 봅니다. 1. http://mariadb.org/ 에 접속..
blckchainetc.tistory.com
--------------------------------------------------------------------------------------------------------------------------------
Java Script terminal 명령어
1. express 로 서버 만들기
no. | 할 거 | meaning | Changes or things to check |
1 | npm init | npm initiate | package.json 파일 생김 |
2 | npm install express | express 를 설치해라 | changes : node_modules 폴더 1개 & package-lock.json 파일 1개 생성 check ! : 1. package.json 안에 express가 추가 되었는지 2. node_modules 폴더 안 express파일 생겼는지 |
2. html 과 연결
3 | npm install nunjucks chokidar | nunjucks & chokidar 설치 ( != sendfile 처럼 단순하지않게 - 이건 값을 넘겨주진 못해 ) |
package.json & node_modeules 췤 |
3. app.post 쓰려면
4 | npm install body-parser | post위해 req.body 내용을 추출하기 위해 body-parser설치 | package.json & node_modeules 췤 |
4. MariaDB 연결
5 | npm install mysql | mariaDB내용을 받기 위함 | package.json & node_modeules 췤 |
5. npm install dotenv
6 | npm install dotenv | db정보를 보낼 때 보안을 위해 다른 파일에 저장해서 불러오는 방식 | package.json & node_modeules 췤 |
----------------------------------------------------------------------------------------------------------------------------------
[29일차 zoom수업] 20210422 node.js 총복습 ( express, app.post, app.get, mariaDB, dotenv / express로 서버 만들기 )
줌 수업 장점 : 9시에 일어나도 된다 너무 좋다 단점 : 졸림.. 어제 html, js를 다 못외움. 오늘 남은거 외우기 ** ----------------------------------------------------------1교시---------------------------..
blckchainetc.tistory.com
'code 정리 모음집' 카테고리의 다른 글
Amazon EC2 Linux 인스턴스 호스팅 / 배포 / 리눅스 명령어 정리 (0) | 2021.07.26 |
---|---|
[GitHub] .gitignore 가 안될 때 / git에서 해당 파일의 변화를 감지하고 트래킹할 때 멈추게 하는 방법 (0) | 2021.07.16 |
[Webpack] 웹팩 CRA 없이 React 개발 환경 구축 및 핫리로드 & CRA 사용버전 (0) | 2021.07.05 |
Git & Github 사용법 / 명령어 정리 / git 사용해서 github에 파일 올리기 / clone 다운받기 / 협업 시 사용방법 / git 다운로드 (0) | 2021.04.26 |
mySQL MariaDB 다운로드 / 사용법 / 명령어 총 정리 / 날짜 함수 date_format() now() (0) | 2021.04.26 |