Portfolio/Node, React login page2 login page algorithm 1. 패키지 설치 - node js 다운로드 npm init - express js 다운로드 npm install express --save - index.js파일 만들기 - index.js 에 기본적인 express js app 구현 - mongoose 설치 및 연결 - db 모델, 스키마 생성 2. 회원가입 기능 만들기 - register 라우터 생성 - client - server 통신할 body-parser 다운로드 npm install body-parser --save - body-parser options(urlencoded or json) 추가 -모델 User 객체(인스턴스) user 생성 - mongoDB의 document 메서드 save 이용해서 err, userInfo 를 각각 실패, .. 2022. 9. 4. Node Document Node index.js 에 들어갈 기본적인 express js app 만들기 - https://expressjs.com/en/starter/hello-world.html Express "Hello World" example Hello world example Embedded below is essentially the simplest Express app you can create. It is a single file app — not what you’d get if you use the Express generator, which creates the scaffolding for a full app with numerous JavaScript files, Jade expressjs.com Node.j.. 2022. 9. 4. 이전 1 다음