BDBibek Dhamiinbvek.hashnode.dev·Aug 5, 2021 · 3 min readUser Authentication With JWTLogin and managing authentication is one of the keys to every application for authentication and security. JsonWebToken allows verifying a user in a secure away. Steps Install Package Register User Login User and Generate JsonWebToken Verifying Toke...00
BDBibek Dhamiinbvek.hashnode.dev·Aug 5, 2021 · 3 min readFile Upload With MulterMulter is a library for handling file upload with form/multipart-formdata. Step Installing Package Multer fileUpload and file type validation Initialize upload variable Insert image path in database Retrieve Uploaded Image Installing Package npm in...00
BDBibek Dhamiinbvek.hashnode.dev·Aug 3, 2021 · 2 min readUnit testing in Nodejs Using MochaTo do unit testing in node we will be using mocha for running test cases and chai for BBD styles test cases. STEP 1: Install Dependency npm install mocha npm install chai npm install chai-http STEP 2: Initialize test File Getting Ready Test File re...00
BDBibek Dhamiinbvek.hashnode.dev·Jul 31, 2021 · 2 min readCrud In NodejsMysql With Knexjs In Node Introduction In this section, we will learn how to set up and perform crud with knex.js in nodejs and I will be using Postman to test routes. Project Structure STEP 1- Getting ready express framework npm install express np...02AM