JavaScript, React 🍦/[Node React]노드리액트기초강의

1. 먼저 git이 설치되어 있는지 확인 cmd창에 git --version입력 2. 만들던 프로젝트에서 터미널 키고 git init git init은 git 저장소를 만들어주는 역할 git저장소가 sub디렉토리에 생성됨 3. git status 통해 깃의 상태 확인 4. 파일들이 지금 작업하고 있는 working directory에서 github까지 push되는 과정을 살펴보면 다음과 같다. staging area는 git repostiory에 파일들을 넣기 전 대기시켜주는 장소 5. git add . 를 통해 파일들을 working directory에서 staging area로 이동시킨다. 6. node_modules는 용량이 너무 커서 git에 올리지 않아도 된다. .gitignore파일을 만든 후..
Model은 Schema를 감싸주는 역할! model 폴더를 생성 후 그 안에 User.js 를 다음과 같이 생성한다 .
1. 몽고디비 사이트 접속 몽고디비 사이트에 접속한다. https://www.mongodb.com/home MongoDB: The Developer Data Platform Get your ideas to market faster with a developer data platform built on the leading modern database. MongoDB makes working with data easy. www.mongodb.com Build a Database 버튼을 눌러 cluster를 생성한다. 다음과 같은 설정으로 cluster를 생성해준다. cluster 이름은 boilerplate로 해주었다. username과 password를 입력하여 몽고DB 유저도 생성해주었다. mongoD..
1. nodejs가 설치되어있는지 확인 검색창에 cmd를 입력하고 cmd창 내에서 node -v 명령어를 통해 nodejs가 설치되어 있는지 확인한다. 2. boiler-plate 폴더 생성 documents폴더로 들어간 뒤 boiler-plate 폴더를 생성하고 boiler-plate 폴더 안으로 들어간다. 3. npm init npm init 입력 후 다음과 같이 환경설정하여 새로운 or 존재하는 npm package를 만들어준다. author에는 자신의 이름을 입력한다. 4. visual studio로 프로젝트 열기 visual studio에서 방금 만든 프로젝트를 열면 package.json에서 npm init을 통해 설정한 내용을 확인할 수 있다. 5. index.js 생성 백엔드 시작점인 in..