Nest Basics
Getting Started
Using npx
:
npx @nestjs/cli new project-name
Installing the CLI:
npm i -g @nestjs/cli
nest new project-name
Starting server
yarn start
Server will be online at: http://localhost:3000/
The project
directory will be created, node modules and a few other boilerplate files will be installed, and a src/
directory will be created and populated with several core files.
src
app.controller.ts
app.module.ts
main.ts
Here's a brief overview of those core files: