Study
-
Git과 Visual Studio 연동Study/Node, React 기초 강의_John Ahn 2023. 2. 13. 01:57
git 설치에 대한 설명은 아래의 게시글에 적어 놓았다. https://developer-study-blog.tistory.com/6 Git 설치 및 설정 (Window) Git 설치 Git 홈페이지에 접속한다. https://git-scm.com/ Git git-scm.com 다운로드를 클릭한다. Window 운영체제를 선택한다. 사용자의 컴퓨터 환경에 맞는 Installer를 다운로드한다. 다운로드한 프로그램을 developer-study-blog.tistory.com 깃을 생성한다. git init Working Directory의 상태를 확인한다. git status 깃에 올릴 필요가 없는 모듈을 빼고 올리기 위해 .gitignore 파일을 생성한다. nod..
-
Model, Schema 설정Study/Node, React 기초 강의_John Ahn 2023. 2. 12. 12:50
Model이란? Schema를 감싸주는 역할이다. Schema란? 하나하나의 정보를 지정해 줄 수 있는 것이다. User.js 생성 프로젝트에 models라는 이름의 폴더를 만들고 User.js라는 파일을 생성한다. // mongoose를 요청함 const mongoose = require('mongoose'); // Schema 설정 const userSchema = mongoose.Schema({ name: { type: String, maxlength: 50 }, email: { type: String, trim: true, unique: 1 }, password: { type: String, minlength: 5 }, lastname: { tpye: String, maxlength: 50 }, ..
-
Mongo DB 연결Study/Node, React 기초 강의_John Ahn 2023. 2. 11. 22:57
Visual Studio와 Mongo DB 연결 아래의 Mongo DB 사이트에서 회원가입을 진행한다. https://www.mongodb.com/kr The most popular database for modern apps We're the creators of MongoDB, the most popular database for modern apps, and MongoDB Atlas, the global cloud database on AWS, Azure, and GCP. Easily organize, use, and enrich data — in real time, anywhere. www.mongodb.com 클러스터(Data Base) 생성 데이터 베이스를 생성한다. 무료 버전으로 생성한다. ..
-
개발 환경 설치_Node.js, express js, Visual Studio (Window)Study/Node, React 기초 강의_John Ahn 2023. 2. 11. 17:05
실습에 앞서 개발환경을 설치해 주도록 한다. Node.js를 설치하기 위해 아래의 URL에 접속하여 Nod.js를 다운로드한다. https://nodejs.org/en/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org Node.js가 잘 설치가 됐는지 확인하기 위해 cmd 창에 접속하여 Node.js 버전과 Npm 버전을 확인한다. node --version npm --version 다음으로 통합 개발환경인 Vusual Studio Code를 설치한다. Vusual Studio Code를 설치하기 위해 아래의 ..