Showing posts with label nest. Show all posts
Showing posts with label nest. Show all posts

Learning Nest Pt. 3 (Hello World!)

February 09, 2023

The obvious next step is to create the hello, world application in Nest. Run the following command to create the hello, world application using Nest CLI.

$ nest new hello-world

Nest will ask you to choose the package manager from the options. Go with the default npm (or you can choose yarn if you like) and wait for the Nest CLI to scaffold the application and also install the dependencies of the application.

Once the process is finished, go inside the created hello-world application.

$ cd hello-world

Then run the following command to start and run the application (as they mentioned in logs).

$ npm run start

Then open the http://localhost:3000 in the browser and you should see the "Hello World!". If that is the case, you just created the hello, world application in Nest. Congratulations 🎉!

Learning Nest Pt. 2 (Install Nest CLI)

February 06, 2023

Following command will install the Nest CLI. This CLI will help us to scaffold the Nest application and provide the toolchain to do many other important things with Nest application. We'll cover most of the toolchain functionalities in future.

$ npm i -g @nestjs/cli

You might need to wait for a couple of minutes to finish the installation. Once the installation is done, you have the nest command in your terminal. Run the following command to confirm the installation of Nest CLI or nest.

$ nest --version
9.1.8

If you see some version as output, you've correctly installed the Nest CLI or nest on your computer.

Learning Nest Pt. 1

January 20, 2023

Nest is the Node back-end framework. You can build Microservices, REST APIs, GraphQL APIs, real-time apps and more. The official website is https://nestjs.com. The documentation is available at https://docs.nestjs.com. I strongly suggest you to read the documentation as much as possible when learning or searching something in Nest. To initiate the reading, you can start with Philosophy section in documentation. The framework is written in TypeScript and the apps that you're going to be build will also be in TypeScript.

It is expected to have the recent version of Node (>= 16) and npm installed on the computer.

In next article, we'll install the Nest CLI, a required tool to work smoothly with Nest framework.