top of page
Search
ashutoshsharma52
May 25, 20221 min read
SQL UNION GROUP BY
SQL UNION Operator UNION operator is used to combine the results of two or more SELECT statements Every SELECT statement within UNION...
4 views0 comments
ashutoshsharma52
May 25, 20221 min read
SQL JOIN
JOIN clause is used to combine rows from two or more tables. INNER JOIN === selects records that have matching values in both tables...
5 views0 comments


ashutoshsharma52
May 24, 20225 min read
All SQL Query
Select all Customers ==== SELECT * FROM CUSTOMERS ( CUSTOMERS --- TABLE Name) SELECT - extracts data from a database UPDATE - updates...
9 views1 comment
ashutoshsharma52
Apr 15, 20221 min read
How To Setup an Auth Module, User Entity & User Repository
Creating a new module nest g module auth nest for nest g for generate auth for the file name Creating a controller nest g controller auth...
5 views0 comments
ashutoshsharma52
Apr 14, 20222 min read
Connecting NestJs with TypeORM
install npm install --save @nest/typeorm typeorm pg Pg is for postgre that we are going to use in this these are the two modules we are...
2 views0 comments
ashutoshsharma52
Mar 15, 20222 min read
What is Async Wait???
Where to Find ASYNC Request Promises are a typical construct that help you deal with asynchronous code because promises work like that....
2 views0 comments

ashutoshsharma52
Mar 13, 20223 min read
How authentication works in rest Api
Restful APIs is Stateless Server so it is different then our server validation what we normally use for our backend. but in case of REST...
1 view0 comments
ashutoshsharma52
Mar 12, 20221 min read
How to add a User Model in REST APIs?
We are using React app I will link that in our downloads so that you dont have to worry about the frontend. I will make Blogs on Frontend...
3 views0 comments
ashutoshsharma52
Mar 12, 20221 min read
How to add pagination in our REST APIs in our backend ?
We are using React first for our front end... countDocument - It will count how many documents we actually have, skip() - We can skip a...
3 views0 comments

ashutoshsharma52
Mar 9, 20222 min read
How to add Payment in Node Js
Payment method is required in most of the e-commerce or any paid subscriber based company. In Node Js application its not very hard to...
2 views0 comments

ashutoshsharma52
Mar 8, 20223 min read
Asynchronous JavaScript: Understanding Asynchronous request in NodeJS
What are Asynchronous requests? behind asynchronous requests is that you do send the request but that request typically contains just...
1 view0 comments

ashutoshsharma52
Mar 8, 20221 min read
Dynamic Pagination
<section class="pagination"> <% if ( currentPage !==1 && previousPage !==1) { %> <a href="?page=1">1</a> <% } %> <% if(hasPreviousPage){...
8 views0 comments

ashutoshsharma52
Mar 8, 20222 min read
Hard Coded Pagination in Node JS without 3rd party packages....
We have made a hard coded pagination its just the basic of pagination and it will look this pagination which allows us to split our data...
0 views0 comments

ashutoshsharma52
Mar 8, 20221 min read
Fire and Forget Functions
While deleting FIles in our Node application we sometimes use fire and forget that means we are not checking it back weather our file is...
1 view0 comments

ashutoshsharma52
Mar 8, 20221 min read
How to Create Pdf on the server automatically?
We want to generate that file based on the real order data. for that first of all will still check if we have that order and if the user...
2 views0 comments

ashutoshsharma52
Mar 8, 20222 min read
Reading Files into memory in NodeJs
reading file data into memory to serve it as a response is not really a good practice, for tiny files it might be ok but for bigger...
1 view0 comments
ashutoshsharma52
Mar 7, 20221 min read
How to tell Google Chrome to change the extension of the file in NodeJS?
res.setHeader('Content-Type', 'application/pdf') this will automatically download or show the file in pdf format directly. If We want to...
0 views0 comments

ashutoshsharma52
Mar 7, 20223 min read
How to Handle Files Correctly in Node Js? || Upload and Download a file in Node Js.........
In this we will learn how can we can allow our users to upload a files and how we can handle them in our server side and what are the...
1 view0 comments

ashutoshsharma52
Mar 7, 20222 min read
Status Codes
When returning responses, it can make sense to also set an appropriate Http status code – this lets the browser know what went wrong •...
2 views0 comments
ashutoshsharma52
Mar 7, 20221 min read
Error Handling Middleware
Make sure that the CSRF Token code is on the top of the other Universal code such as the error 500 page, 400 error page or the session...
2 views0 comments
bottom of page