Are you interesting in creating serverless cloud functions that allow one to:
If the answer to any of these questions is yes: you need to keep listening. Because I am about to deliver a podcast based upon this topic.
Using the Serverless framework one is able to create these cloud functions such as one would be able to in Google’s Firebase or MongoDB’s Realm. …
Find the book here: https://www.lulu.com/account/projects/7dqz7r
A lot of great coding projects include a User Authentication System. Think about it: can you name a great software application that does not include one?
For this article I will be implementing a User Authentication System in Nodejs with express.js; Mongoose as the ODM and Bycrypt for the password hashing. It will also include MongoDB as the Database and Angular 10 as the front-end-framework.
Let’s Get Started!
For the beginning part I will be laying out the front-end: which will consist a form with email and password inputs. It will also include buttons for logging in and signing up…
CRUD: it’s an entry level acronym that means: CREATE; READ; UPDATE and DELETE. It is used in Database terms to signify the four HTTP REST Methods. Basically: any HTTP request in Software Engineering will be one of these four methods (one exception: there is also PATCH; which is basically the same method as PUT).
Again: here are the four HTTP Methods and their purpose:
npm i typescript -g
This can be created by the Typescript command line tool. To build a server in typescript one needs to use npm to initalize it as a node.js project.
npm init -y
Angular 11 has many advantages. One of which being the ability to make Angular (a front end framework): into a Full Stack Framework with the Angular CLI and Server Side Rendering. This allows there to be an Node and Express project to be inside your of your Angular Project.
Doing this allows for there to be a server on in the Angular project. This is useful when using databases and REST APIs (or WebSockets). Simply speaking: this allows data to be stored. In this case well be storing the data on an Node server in Typescript.
So now there exist…