본문 바로가기

NestJs API 만들기

01. 설치

NestJs는 node.js 위에서 움직이는 프레임워크이고 node.js에 백엔드를 구성할 수 있도록 해준다.

NestJS는 100% Typescript에 기반하고 있다.

 

 

1. Node.js 설치

 

Node.js — 어디서든 JavaScript를 실행하세요

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

 

 

 

2. Git 설치

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. Latest source Release 2.49.0 Release Notes (2025-03-14) Download Source Code GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but ther

git-scm.com

 

 

 

3. Insomnia 설치

Insomnia는 Rest 클라이언트이다.

Insomnia를 통해 앤드포인트를 테스트한다.

Insomnia를 다운로드 한다.

 

Download

Download Insomnia the best API Client for REST, GraphQL, GRPC and OpenAPI design tool for developers

insomnia.rest

 

 

 

4. Nest.js 설치

아래 링크로 들어가면 설치 명령어를 확인하여 CMD(Command Prompt)에서 실행한다.

npm i -g @nestjs/cli 는 명령어 실행하면 nestjs를 설치되고 

nest 명령어를 실행하면 다른 커맨드들의 리스트를 보이게 되는데 설치가 완료되었다는 것이다.

 

 

Documentation | NestJS - A progressive Node.js framework

Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Rea

docs.nestjs.com

 

 

 

5. 프로젝트 생성

원하는 경로에서 nest new 명령어를 실행 후 프로젝트 명을 입력한다.

그리고 프로젝트 명을 입력 후 엔터를 누르고 npm으로 커서를 이동후에 엔터를 클릭한다.

 

 

 

6. Github Push

6-1) Github Repository 생성

 

bonsimony/NestJS-API

NestJS API 만들기. Contribute to bonsimony/NestJS-API development by creating an account on GitHub.

github.com

 

 

6-2) Github Push

'NestJs API 만들기' 카테고리의 다른 글

06. REST API - Http Decorator  (0) 2025.05.20
05. REST API - Movies Contorller  (0) 2025.05.19
04. NestJS - Services  (0) 2025.05.19
03. NestJs 구조 - Controllers  (0) 2025.05.19
02. NestJs 구조  (0) 2025.05.19