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
Components available in Formik Forms
Formik is a popular library in the React ecosystem that helps developers easily manage complex forms. It offers a set of components and hooks that you can use to quickly and efficiently create dynamic and validated forms. In this blog, we look at the components available in Formik modules and how they can be used … Read more
“Mastering Navigation in React: A Guide to React Router”
React Router enables developers to define routes declaratively in their React components and handle changes in the browser URL without having to reload the page.
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
What is API? How to fetch API data in React
API is an abbreviation for Application Programming Interface, which is a collection of definitions and protocols for developing and integrating application software. APIs enable your product or service to communicate with other products and services without requiring you to understand how they work. This can help to simplify app development while also saving time and … Read more
Relations in Prisma.
Relation in prisma is defined as the inter-connection between two models in Prisma schema. For example, if we have a model named User and another named Post, then one user can have many number of posts associated with him/her. It represents 1 to many relation in Prisma. There are three types of relations in Prisma. … Read more
How to install Prisma in NestJS ?
Prisma is an open-source ORM for Node.js and TypeScript. It is a next-generation node.js and typescript ORM. It is used as an alternative to writing plain SQL or using another database access tool such as SQL query builders. While Prisma can be used with plain JavaScript, it embraces TypeScript and provides a level to type safety that goes beyond the guarantees … Read more
How to map array of objects in ReactJS?
About React JS and how to install it React is a JavaScript library used to create user interfaces (UI) for web applications. Facebook created it and released it in 2013. Developers can use React to create UI components that can be easily reused, composed, and managed. React takes a declarative approach to UI development, which … Read more
Get started with Prisma.
Brief about Prisma Let’s start this blog with a brief understanding of Prisma. Prisma is an open source ORM(Object-Relational Mapping). It is an alternative solution to writing plain SQL queries because writing plain SQL queries wont provide an ideal abstraction. Why use Prisma? Prerequisites Assuming that you already have NodeJs installed in your system, you … Read more