본문 바로가기

반응형

Web Dev/node.js

(6)
Node.js에서 mongoose 사용하여 MongoDB 연동 하는 방법 요로코롬 [MongoDB Atlas 접근] [MongoDB Atlas 로그인] [MongoDB Atlas Project 생성] [MongoDB Atlas Cluster 생성] [ 필히 공짜 버전으로 세팅하세요 ! ] [MongoDB Atlas Cluster 연결] [ 본인 아이피도 꼭 등록해야 합니다. 페이지에서 자체적으로 알려줄 거예요] [MongoDB Atlas Cluster 연결 Url] mongodb+srv://ghwnsgkgk:@cluster0.nhafe7u.mongodb.net/?retryWrites=true&w=majority [해당 url 확인 및 생성한 id pw 적용] 물론 npm install mongoose 해야 한다 const mongoose = require("mongoose"); con..
Node.js Api -> MongoDB 전송 칼럼명 맞추지 않으면 전송 안되지롱!
Node.js로 Test api 만드는 쉬운 방법 Postman https://www.youtube.com/watch?v=pN49Lnlyuao https://github.com/typicode/json-server GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) Get a full fake REST API with zero coding in less than 30 seconds (seriously) - GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) github.com -> Ge..
Node.js 우분투에 노드js로 기초 백엔드 api 서버 구축 코드를 알아보자 https://velog.io/@ywoosang/Node.js-%EC%84%A4%EC%B9%98 우분투 Node.js 설치및 npm 환경구축 우분투 20.04에 Node.js 를 설치하는 세 가지 방법, npm 환경 구축과 REPL 을 이용한 실행 velog.io 1.$sudo apt-get install -y curl 2.$ sudo apt update 3.$ sudo apt install nodejs 4.$ nodejs -v -> v12.22.9 5.$sudo apt install npm node .js 설치 완료 npm install [package] npm init -> 패키지 정렬 ! npm uninstall [package] -> 삭제 npm i express -> 웹 페이지 프레임 워크 설치..
Node.js CoolSMS를 사용하여 백엔드 api로 문자 SMS 발송 하는 방법 알려드립니다. https://www.npmjs.com/package/coolsms-node-sdk coolsms-node-sdk CoolSMS SDK for Node.js(Server Side Only). Latest version: 2.0.1, last published: a year ago. Start using coolsms-node-sdk in your project by running `npm i coolsms-node-sdk`. There are 3 other projects in the npm registry using coolsms-node-sdk. www.npmjs.com npm install 를 꼭 해주셔야합니다. CoolSMS를 사용하여 api로 문자 발송을 해볼려고합니다. 회원가입을 해줍니다. 체..
Node.js - Nodemon 사용방법 : 서버 셧다운 필요없는 자동 서버 재실행 in 우분투 나는 우분투 사용자이다 Nodemon 설치 시 발생했던 문제점 적어보았다. 1. npm install nodemon -> 설치 위 명령어로 설치를 하게 되면 nodemone : 명령을 찾을 수 없습니다 해당 에러를 마주하게 된다 . -> npm uninstall nodemon 으로 삭제를 해주고 -> npm install -g nodemone -> 설치 -g : 이건 컴퓨터 전역에서 해당 모듈을 사용할 수 있도록하는 명령어이다. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories,..

반응형