What is NPM?What is Package?What is Package.json?
First of all, NPM stands for Node Package Manager. It is also known as Ninja Pumpkin Mutants or Non-Profit Pizza Makers. Npm is a package manager for Javascript Programming Language. It is a package manager for NodeJs packages or modules if you like. It is the default package manager for the Javascript runtime environment NodeJs. … Read more
Model View Controller
Model view controller is the pattern where any web app show to the client in HTML, CSS & JS format. It separates an application into three interconnection components: the model, the view, and the controller. Controller – The controller is the endpoint where the request is received. The controller acts as an intermediary between the … Read more
How to design Entity-Relationship diagrams without sketching?
Traditionally, we are used to sketch a sample UML diagram in our paper and then draw it in our PC using different tools but now we can do it just by typing out your database model code in db.diagram.io. db.diagram.io is a database diagram designer platform to design and develop your Entity Relationship(ER) diagrams. It … Read more
What is Swagger?How to implement swagger in your NestJs project?
Swagger is an open source tool/framework which is widely used by developers for building,documenting and testing out RESTful APIs for their system. It is very useful in the development phase of a system as it helps developer use and understand each other’s APIs. To implement swagger in your NestJs project, you can go through the … Read more
Multer in NestJs
Multer is a middleware for handling multipart/form data in Node.js applications, including NestJS. It is commonly used for handling file uploads. NestJS is a popular framework for building scalable and maintainable server-side applications with TypeScript. To use Multer in a NestJS application, you can follow these steps: Step 1: Install Multer as a dependency in … Read more
Create an authentication module in NestJs using local-strategy
Step 1: Create auth module (make it individual) stuff needs in authentication: step 2: import the passport module in auth module Step 3: Create the folder strategy and inside the folder create new file local.strategy.ts step 4: create auth guard
Web Scraping & storing in database in NestJs using Puppeteer and Prisma.
First of all, web scraping is the phenomenon of fetching/extracting contents and data from an existing website with the help of bots. In this blog, we will be using puppeteer package to scrape data. Puppeteer is headless chrome node API. It is an automation tool. Get started We are going to scrape book details from … Read more
Data seeding in NestJs using Faker and Prisma ORM.
First of all, data seeding is the mechanism of populating a database with dummy data. It is very useful in development of any system. It helps in automated testing and also increases the efficiency of database management. Data seeding can be done in several ways, but in this blog we are going to use faker … Read more
How to create a simple CRUD operation in NestJs?
Step 1: Create new nestjs project Step 2: Set up Prisma If you don’t know how to set up Prisma then click here for the Prisma setup tutorial, if you know then go to the next step Step 3: Create a user module Step 4: Set up CreateUserDto Step 5: Set up user.service.ts Step 6: … Read more