npm install for Production
Learn how to ignore development dependencies and decrease the size of the node_modules folder when working with npm install in a production environment.
Explore our latest thoughts, tutorials, and insights on technology and development
Learn how to ignore development dependencies and decrease the size of the node_modules folder when working with npm install in a production environment.
Learn how to use Docker to build and run Express applications in development and production.
Learn how to store passwords securely including encrypted vs hashed passwords, what a salt is, how to encrypt and decrypt passwords with Node, how to hash passwords with Node, and how logging in works with hashed and salted passwords.
Learn how to use refresh tokens and access tokens to add authentication and authorization to an Express app. We will use the libraries jsonwebtoken and cookie-parser and will also go over the security benefits of refresh and access tokens.
Learn how to create a TypeScript app, what TypeScript is, how it is different and similar to JavaScript, how to configure the TypeScript compiler with tsconfig.json, and how to install TypeScript.
Learn what a refresh token is, why they are needed, where to store them, and how refresh tokens are different from access tokens.
Learn how to protect a web application that uses JWT cookies from cross-site request forgery (CSRF) attacks using Node. We will also learn why JWT cookies are particularly vulnerable to CSRF and what a CSRF attack is with a live example.
Learn how to create an infinite scroll with React and ExpressJS using the intersection observer API and a custom useInfiniteScroll hook.
Learn how to use both JWTs and Cookies in Express to authenticate a request and how to protect JWT cookies from cross-site request forgery (CSRF) attacks. To demonstrate, we will be using the jsonwebtoken and cookie-parser npm libraries.
Learn to use environment variables inside an Nginx docker container using docker compose and envsubst.