본문 바로가기

Uber Eats

Uber Eats # 1 nest, gitignore, github

Nest를 활용해서 프로젝트 생성하기

 

nest g application

project name: nuber-eats-backend

 

생성 후 visual studio code에서 npm i를 통해 필요한 패키지 설치

 

 

npm run start:dev 명령어 실행 후 localhost:3000 접속하면 Hello World!를 볼 수 있다.

 

github.com에서 Repository 생성하기

 

프로젝트에서 

git init

git remote add origin {HTTP} 

 

5000개가 넘는 파일을 커밋해야 하는 상황

gitignore를 통해 필요한 파일만 업로드하기

플로그인 gitignore를 설치하고 command palette를 클릭하고 add gitignore 후 node를 찾아서 엔터를 누른다.

자동으로 생성해준다.

 

README.md 수정 후 git에 올리기

git add .

git commit -m "{message}"

git push origin master

 

 

 

 

'Uber Eats' 카테고리의 다른 글

Uber Eats # 3 Apollo server  (0) 2021.03.06
Uber Eats # 2 graphql  (0) 2021.03.06
# 3-1 NestJS - 구조 파악하기  (0) 2021.02.11
# 3-0 Nest.js  (0) 2021.02.11
# 2-5 TypeScript - BlockChain  (0) 2021.02.11