This series is the one I've been preparing for till now. The REST series and the Web Basics series all build up to this series. So, this is the blog that will kick off the Backend Development series. Let's first see what we are working with and what we'll be building.
The Tech Stack
Together, these technologies provide a robust, scalable, and efficient solution for building a backend for a blog. In this guide, we will explore the fundamentals of using MongoDB, Node.js, and Express to build a backend for a blog, covering everything from setting up the environment to creating RESTful APIs and integrating them with a front end. So, let's get started!
What are we building?
We'll be building a user login system, which is a fundamental feature in most web applications, allowing users to securely access their personal information and data. However, building a user login system can present some challenges, such as user authentication, security, and session management.
One of the first challenges in building a user login system is implementing a secure authentication process. This can be accomplished through the use of secure encryption and hashing techniques, such as "bcrypt", to store passwords and compare them to user inputs.
Technologies commonly used in building a user login system include Node.js, Express, and MongoDB for backend development, and frameworks for the front-end side of things.
For authentication, technologies like JSON Web Tokens can be used. Sessions can be managed with the help of packages like Express-session or JWT tokens.
Some of the Prerequisites for the series are:
Node.js: Knowledge of Node.js is quite important. Check out my blog on Nodejs for a quick refresher.
RESTful APIs: Building a blog requires creating RESTful APIs to handle requests and responses. Understanding RESTful API design principles and how to create endpoints for a web application is necessary. Check out my REST series.
HTML, CSS, and front-end frameworks: Building a blog also requires knowledge of HTML and CSS for creating a user interface. Knowledge of front-end frameworks such as React is helpful for building dynamic and responsive user interfaces.
Basics of how the Web Works: Check out my series on Web Basics as well.
We'll figure out and explain other requirements as we go along.
That's it! We'll start with installation and setup in the next blog. This was just a small blog to update on the Backend Dev blog series, that I've been preparing for a long time. If you did find this helpful, stay tuned/like/all that good stuff. Will write on more topics. If you still have any questions/queries you can reach out to me on my LinkedIn / GitHub / Twitter.
Did you find this article valuable?
Support Saptarshi Bhattacharya by becoming a sponsor. Any amount is appreciated!