Building a CRUD extension using TypeScript

Objectives
After completing this lesson, you will be able to:

After completing this lesson, you will be able to:

  • Build a CRUD extension application using TypeScript and the Nest framework

Exploring the Use of Nest and SAP Cloud SDK

Introducing the Nest (NestJS) Framework

Nest (NestJS) is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript), and combines elements of Object Oriented Programming (OOP), Functional Programming (FP), and Functional Reactive Programming (FRP).

Nest makes use of robust HTTP Server frameworks like Express (the default) and optionally can be configured to use Fastify as well. It provides a level of abstraction above these common Node.js frameworks (Express/Fastify), but also exposes their APIs directly to the developer. This provides developers with the freedom to use the myriad of third-party modules, which are available for the underlying platform.

You can find full documentation of Nest in the official web site at https://nestjs.com

Introducing the Nest Command Line Interface

The Nest CLI is a command-line interface tool that helps you to initialize, develop, and maintain your Nest applications. It assists in multiple ways, including scaffolding the project, serving it in development mode, and building and bundling the application for production distribution. It embodies best-practice architectural patterns to encourage well-structured apps.

You can find additional information about the Nest CLI at the following page: https://docs.nestjs.com/cli/overview.

Debugging with Visual Studio Code

Using the Nest framework in conjunction with Visual Studio Code provides an optimum development experience. For example, you can run the following features at the same time:

  • The debug feature: to set breakpoints and stop program execution when required.
  • The watch feature: to change the source code of the running application. This is automatically recognized, the application is automatically re-built and re-started.

Save progress to your learning plan by logging in or creating an account