Menu
Codebook LogoCodebookDocsTemplates
Design SystemsJavaScriptReactPHP
Codebook LogoCodebook
  • Docs
  • Templates
  • Design Systems
  • JavaScript
  • React
  • PHP
  • Getting Started
    • Getting Started
  • JavaScript
    • React
      • Basics
      • Context
      • Forms
      • Hooks
      • Snippets
      • Examples
        • Hide on Scroll
        • Hide Sidebar on Mobile
        • Sync State Between Tabs
      • Gatsby
        • Config
      • NextJS
        • MDX
        • Router
        • Tips
      • Styled Components
        • Basics
        • Snippets
        • Typescript
    • React Native
      • Introduction
      • Basics
      • Design Systems
      • 3rd Party Components
      • React Native Web
    • NodeJS
      • Basics
      • Async
      • package.json
      • ExpressJS
        • Error Handling
      • NestJS
        • Introduction
        • Basics
    • Typescript
      • Config
    • Vanilla JS
      • Currency
      • Validation
    • Web Components
      • Storybook
      • Integrating with ReactJS
    • jQuery
      • Best Practices
  • PHP
    • Basics
    • Snippets
    • Laravel
      • Blade
      • DevOps
      • Tips
  • CSS
    • Snippets
  • Dev Ops
    • Project Management
      • Linting
    • Git
      • Snippets
    • Ubuntu
      • Permissions
  • Other
    • Regex
    • Shopify
    • Netlify
    • Firebase
      • Introduction
      • Basics
      • Gatsby
  • Design Systems
    • Theming
      • Examples

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:

Previous
« Nest Introduction
Next
Typescript Configuration »
  • Starting server
Ryosuke logo
Copyright © 2020 Ryosuke