English - Tiếng Việt
Install Nest.js and related softwares
This document is for macOS.
Other operating system: Windows - Linux
Table of contents
Installation
(Optional) Homebrew
Homebrew is an open-source software package mangement system. Some software listed below could be installed by Homebrew.
Install Homebrew by the command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Node.js
Node.js is a server environment to run application written in Javscript. Nest.js is a framework on Node.js.
To install Node.js:
- Download Node.js installer at https://nodejs.org/en/download
- Run the installer
Or run command (Homebrew is required):
brew install node
After installation, verify by this command, if the versions of npm
and node
are displayed then the installation is success.
node --version
npm --version
Nest.js
Install Nest.js by the command
npm i -g @nestjs/cli
After installation, verify by this command, if the version of nest
is displayed then the installation is success.
nest --version
Postman
Postman is a tool to work with APIs in order for testing and building the APIs.
To install it:
- Download the installer at https://www.postman.com/downloads/
- Unzip the downloaded file
- Run extracted file
Or run the command (Homebrew is required):
brew install --cask postman
Database
Nest.js applications may need to work with database. To install one of commonly used database, please refer to below links:
- MySQL: https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/
- MongoDB: https://www.mongodb.com/docs/manual/installation/#mongodb-installation-tutorials
- PostgreSQL: https://www.postgresql.org/docs/current/installation.html