At this point, on the previews weeks we’ve been working on the views built with React and Material UI, now it’s time to make it functional. In order to do that we need to build our backend this time we’re gonna be using Node js and Express.
How Express works?
Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. It’s designed to build easy APIs this makes easy to organize the application functionality with middleware and routing it also improves the performance.
How node js implements security
If you’re starting a project always from the beginning you should consider the security at every phase of the development such as architecture, design, code, and finally the deployment.
One of the most important things you should check is Data validation, you must always validate or sanitize the data coming from the user or other entity of the system. The bad validation or no validation at all is a threat to the working system and can lead to a security exploit. With node js you can use the module validator to perform the data verification.
Other important thing is the application authorization and authentication, including hashing the passwords you can use bcyrpt node module to perform the hashing.
When we start building our backend there’s many things we have to consider building APIs, connecting the database and most important security. In the final week of building our first project in 4 weeks we’re gonna be learning about testing and deployment.
Latest comments (0)