Hey Nerds!!!
In my last post, we learnt how to build an API. In this post, we would learn how to secure the API that we built. We would be using the same folder we used in the previous post, so ensure that you followed and understood the previous post before coming onboard this one ;-)
Let’s begin by understanding why it is important to secure our API in the first place.
The server may have resources or files that should be protected so that only the right user(s) can access them. …
Express generator is a package that simply saves you time and effort in creating node.js web apps. It does this by generating folders that you would otherwise have created manually.
So, how do we achieve this:
Step 1: open your terminal using the short cut (Cntrl +Alt +T), then change the directory to your desktop using the command:
$ cd Desktop
Step 2: create a folder and give it any name of your choice. Use the command:
$ mkdir folderName
Change the directory to your folder using the command:
$ cd folderName
Step 3: next, lets generate the folders (public, routes, views, app, bin, and package.json folders) using express generator. …