Authentication in Nodejs using Passport.js


Hello once again, In this article I would be teaching you authentication in nodejs using express and passport.js I know working with passport.js is a little bit tricky and confusing, but trust me I’ll make it really simple. I would highly recommend you to code along with me to better understand the flow of the code. Note: Before we begin I would like you to understand the...

Authentication in Nodejs using JSON web tokens (JWT)


Hey there, In this article, we would be learning how to implement authentication in nodejs using express and JWT aka JSON web tokens What are JSON web tokens? JSON web tokens or JWT is a simple long string that contains some data in an encoded way. Sounds confusing? here is an example A Sample JWT String may look like: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

How to schedule jobs in node.js


Hey there, In this article we would be learning how to schedule jobs in nodejs. There can be times where we want to schedule a job in node, like sending report email, some check etc. Scheduling a job in node is really simple, just follow the steps along with me. Step 0: Project Setup First things first, let’s create a folder say myApp and open this folder in terminal or command prompt...

Building REST API with Node.js


A few years back, the only way to run a javascript code was in web browsers. But after the birth of Nodejs, we could run javascript code outside of the web browser. Node.js provides a run time environment to run javascript code. It is built on the chrome‚Äôs open-source V8 engine. After being said that let’s build a real REST API in Node.js & Express from scratch. I’ll be...

Most common tags