Posts

Showing posts from September, 2020

CRUD operation using MEAN stack

Image
  A blog on how to do crud operation using mean stack application from scratch Github: https://github.com/mehulk05/Blog-using-mean Live Demo: https://mehulk05.github.io/Blog-using-mean/ A demo of what we are creating Let us understand what does MEAN stack means. Mongo DB  – It’s an open-source NoSQL cross-platform document-oriented database. Express JS  – It’s a web-based application framework work with Node JS, It helps to build web apps and RESTful APIs. Angular 7/8/9  – It's a TypeScript based complete front-end framework developed by the Google team. Node JS  – It is a free JavaScript run-time environment, It executes JavaScript code outside of a browser. It is available for macOS, Windows, Linux, and Unix. I will be using the following plugins and tools to create the MEAN Stack app. Node JS MongoDB Mongoose JS Express JS Angular CLI 7.2.3 Visual Studio Code #1 Setup Node JS development environment Follow this link to  set up Node JS in your system.  Simply download and install

Authentication Using JWT in MEAN Stack

Image
  GitHub URL:  https://github.com/mehulk05/Blog-using-mean Live Demo:  https://mehulk05.github.io/Blog-using-mean/#/ A live demo   JSON Web Token   is one of the best standards to implement an authentication system in your MEAN stack app. In this article, we will just have look at authentication in the MEAN stack app using JWT. What is JSON Web Token? JSON Web Token (JWT) is an open standard ( RFC 7519 ) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object When should you use JSON Web Tokens? Here are some scenarios where JSON Web Tokens are useful: Authorization : This is the most common scenario for using JWT. Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token. Single Sign-On is a feature that widely uses JWT nowadays, because of its small overhead and its ability to be easily used across different domain