...
/Installing the Express Framework and npm Packages
Installing the Express Framework and npm Packages
Learn how to set up and install the various npm packages to be used in the backend of our project.
We'll cover the following...
We will install ten different npm
packages in our backend project. The importance of these npm
packages will significantly help the workflow in our backend. We can now take a look at each of these packages down below:
Bcryptjs
bcryptjs
is an npm
package with a password hashing function that helps prevent sensitive data, e.g., passwords, from being compromised. It uses salt
to protect sensitive data stored in plaintext. To install bcryptjs
, we have to run the following command:
npm i bcryptjs
Cors
Cross-origin resource sharing (CORS) is a feature in browsers that makes it possible for restricted web pages to get requests from a domain different from the domain resource it was sourced. When trying to access domains from two different origins, the ...