Skip to main content
ProductsDesktop toolsTASTECADDrawing reviewTASTEFILESFile managementTASTEFTPFile transferTASTESSHRemote workspaceTASTEZIPCompression and extractionTASTEWINMFile managementDeveloper toolsTASTECODERust integrated development environmentTASTESTUDIOIntegrated development and test environmentTASTEETLData integration (ETL)ServersTASTEREMOTERemote desktop serverTASTEGEOGeospatial serverTASTEMAILMail workspaceInvestingTASTESTOCKStock auto-trading desktop appGet startedDownloadsDocumentationBuyAll products
Marketplace
News
TechNewsToday's dev newsDeveloper docsProgramming languagesRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp & desktop frameworksTauriFlutterReact NativeElectronAlgorithmsAlgorithm basicsCore algorithmsAdvanced algorithmsPractical algorithms
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcaseCommunity guide
Work with usTech transferWebsite buildDesktop app buildRelease and payment pipelineSales partnerContact
ServicesRemote desktopCustom installer packages
TASTEDEV
Products

Desktop tools

TASTECADComplex drawings, opened with easeTASTEFILESJust the files you need, as fast as possibleTASTEFTPThe tidiest path for your filesTASTESSHA stronger link between you and your serversTASTEZIPPack faster, unpack saferTASTEWINMA keyboard-first file manager with two panes

Developer tools

TASTECODEEdit, build, debug and test Rust apps in one windowTASTESTUDIOFrom editing to remote tests and approved AI fixesTASTEETLMove data while you watch the values

Servers

TASTEREMOTEA remote desktop you run on your own serverTASTEGEORebuilding a GeoServer-compatible geospatial server in RustTASTEMAILTake back control of your email

Investing

TASTESTOCKStock auto-trading that follows the rules you set: when, and what

Get started

DownloadsLatest builds of every productDocsHow to use each productBuySubscriptions and perpetual licencesAll productsEvery product at a glance
All products
MarketplaceNews
Tech

News

Today's dev newsOfficial announcements on languages, frameworks, GitHub and AIDeveloper docsGuides to languages, frameworks and algorithms

Programming languages

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App & desktop frameworksTauriFlutterReact NativeElectron

Algorithms

Algorithm basicsComplexity analysis · Sorting · Searching · Basic data structures · Trees and heapsCore algorithmsGraph traversal · Shortest paths & minimum spanning trees · Dynamic programming · Greedy algorithms · Divide and conquer · BacktrackingAdvanced algorithmsString algorithms · Math and number theory · Bit manipulation · Segment trees · Union-findPractical algorithmsCoding interview strategy · LRU cache · Rate limiting · Consistent hashing
All development docs
Community
ProjectsDiscover builders and their workDevelopment logsDecisions and lessons learnedPromptsReusable instructionsAI tool issuesProblems and workarounds for Claude, Codex, GeminiShowcaseFinished resultsCommunity guideHow we build in the open
Work with us
Tech transferNative apps in Rust and eguiWebsite build10 languages, accounts, docs and downloadsDesktop app buildRust and egui, no WebViewRelease and payment pipelineSigning, MSI, deb, rpm, AppImage, hashesSales partnerRecommend us and earn 30%ContactBuilds, partnerships and investment
Services
Remote desktopReach your computer from a browserCustom installer packagesOnly the features you need, settings preloaded
Buy
EN
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Log in
Log in
TASTEDEV

From small tools to better development.

support@tastedev.netSupport TASTEDEV
ProductsProduct lineupBuyDocsDownloadsMarketplaceSupport
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcase
PoliciesAbout usPrivacy policyTerms of serviceSubscription termsRefund policyCommunity guidelines
AccountLog inSign up
Visitors
Today
Yesterday
Total views
Company
GXSOFT
Representative
CHOI YOUNG GU
Business registration number
853-44-00368
Address
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Phone
+82-10-4404-1523
Email
whitecalvin@tastedev.net
Privacy officer
CHOI YOUNG GU

© 2026 TASTEDEVProduct information is based on verified development sources.Released · improving

NestJS · Express docs
NestJS · Express
Getting Started with NestJS and ExpressProject StructureCore ConceptsValidation, Configuration and DatabasesTestingDeployment
Discussions

NestJS · Express guide · 1/6

Getting Started with NestJS and Express

This chapter builds the smallest possible web server with Express, then creates a NestJS project with the Nest CLI and runs its development server. It ends with a few notes on editor setup.

How Express and NestJS relate

Express is a minimal web framework for Node.js: it gives you routing and middleware and leaves the rest of the architecture to you. NestJS is a server framework that adds structure on top, with modules, dependency injection and decorators. Nest delegates HTTP handling to a platform adapter, and the default adapter is Express (@nestjs/platform-express). A Nest application is therefore an Express server under the hood, and you can use Express middleware directly. Swapping the adapter for Fastify is also supported.

Both need Node.js. Check what you have installed; for a fresh install, the LTS release from nodejs.org is the safe choice.

node --version
npm --version

A minimal Express server

Create a package.json in an empty folder and install Express.

mkdir hello-express
cd hello-express
npm init -y
npm install express

Add an index.js file. express() creates the application, app.get registers a handler for GET requests to a path, and app.listen opens a port.

// index.js
const express = require("express");

const app = express();
const port = process.env.PORT || 3000;

app.get("/", (req, res) => {
  res.send("Hello World!");
});

app.listen(port, () => {
  console.log(`Listening on http://localhost:${port}`);
});

Run it with node index.js and open http://localhost:3000. During development, Node's built-in watch mode restarts the server whenever you save a file.

node --watch index.js

Creating a project with the Nest CLI

Nest projects are usually created with the official command-line tool, the Nest CLI. Install it globally and run nest new.

npm i -g @nestjs/cli
nest new hello-nest
cd hello-nest
npm run start:dev

nest new asks which package manager to use (npm, yarn or pnpm), scaffolds a project with TypeScript and testing already configured, and installs dependencies. If you prefer not to install globally, npx @nestjs/cli new hello-nest does the same. npm run start:dev runs nest start --watch, which recompiles and restarts on every change. Once it is up, http://localhost:3000 responds with "Hello World!".

The entry point is src/main.ts. NestFactory.create builds the application from the root module, AppModule, and starts listening.

// src/main.ts
import { NestFactory } from "@nestjs/core";
import { AppModule } from "./app.module";

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  await app.listen(process.env.PORT ?? 3000);
}
bootstrap();

The generated package.json includes the scripts you will use most.

ScriptWhat it does
npm run start:devDevelopment server in watch mode
npm run start:debugWatch mode with the debugger enabled
npm run buildCompile TypeScript into dist
npm run start:prodRun the compiled dist/main.js
npm run test / npm run test:e2eUnit tests / end-to-end tests
npm run lintRun ESLint

Adding your first endpoint

The CLI's generate command (g for short) creates files and registers them in the nearest module.

nest generate controller hello
# short form
nest g co hello

Edit the generated src/hello/hello.controller.ts. When a handler returns an object, Nest serializes it as JSON.

import { Controller, Get, Query } from "@nestjs/common";

@Controller("hello")
export class HelloController {
  @Get()
  greet(@Query("name") name?: string) {
    return { message: `Hello, ${name ?? "world"}!` };
  }
}
curl "http://localhost:3000/hello?name=Nest"
# {"message":"Hello, Nest!"}

Editor setup

VS Code supports TypeScript out of the box, so completion and type checking work immediately. Nest projects ship with ESLint and Prettier configuration; install both extensions and enable format on save. To debug, start the server with npm run start:debug and attach the editor's Node.js debugger. WebStorm and other editors work the same way.

Summary

  • Express is a lightweight framework built around routing and middleware; NestJS runs on Express by default and adds structure.
  • An Express server takes npm install express and a few lines of code.
  • A Nest project is created and started with npm i -g @nestjs/cli, nest new and npm run start:dev.
  • nest g generates building blocks such as controllers and wires them into a module for you.
Questions about this chapter?
Next chapterProject Structure

0 comments

Top commentsNewest first

Sign in · Sign in to leave a comment.