Abheetha Pradhanabheetha.hashnode.dev·Nov 12, 2024$in Operator in MongoDB usecasesShow a feed of posts made only by users you are following like X’s “Following” section const followingIds = ['user1', 'user2', 'user3']; //Get posts from your following list in the last 24 hours and sort them in descending order const feedPosts = awa...DiscussMongoDB
Muhammad Inamreactdevsolutions.hashnode.dev·Nov 11, 2024How to Create a RESTful API with Node.js, Express, and MongoDB using MVC patternIn this post, we'll explore setting up a basic RESTful API using Node.js, Express.js, MongoDB, and Mongoose using the MVC (Model-View-Controller) pattern. By structuring our application this way, we create a modular, organized, and scalable project. ...DiscussMongoDB
Ranjan Yadavmernstackdiary.hashnode.dev·Nov 7, 2024Project_1.1 : Building a University Website from Scratch: Step-by-Step Guide for BeginnersTo build this university website project, here’s a list of the essential HTML and CSS concepts you'll need to understand. I've organized them by section to help you follow along step-by-step as you learn. 1. HTML Basics Start with these foundational ...Discuss·1 likeProject_01_To_Do_AppWeb Development
M B A R Kmbarkt3sto.hashnode.dev·Nov 1, 2024Express.js: CORS and Cross-Origin Resource SharingIn this article, we’ll cover Cross-Origin Resource Sharing (CORS) in Express.js applications. CORS is a security feature that restricts how resources on a web page can be requested from another domain. Understanding and configuring CORS is essential ...DiscussExpress
M B A R Kmbarkt3sto.hashnode.dev·Nov 1, 2024Express.js: Serving Static Files and AssetsIn this article, we'll explore how to serve static files such as images, CSS, JavaScript, and other assets in an Express.js application. Serving static assets is essential for any web application, as it helps enhance the user experience by providing ...DiscussExpress
M B A R Kmbarkt3sto.hashnode.dev·Nov 1, 2024Express.js: Using Templating Engines (EJS, Handlebars)In this article, we’ll explore how to use templating engines in Express.js, specifically EJS and Handlebars. Templating engines allow us to dynamically generate HTML on the server, helping create more interactive and data-driven web applications. Wha...DiscussExpress
M B A R Kmbarkt3sto.hashnode.dev·Nov 1, 2024Express.js: Building a RESTful APIIn this article, we’ll explore how to build a RESTful API using Express.js. RESTful APIs are a standard way to create web services that allow clients to interact with server resources via HTTP requests, using operations like GET, POST, PUT, and DELET...DiscussExpress
M B A R Kmbarkt3sto.hashnode.dev·Nov 1, 2024Express.js: Connecting to a DatabaseIn this article, we’ll explore how to connect an Express.js application to a database. Databases allow us to store and retrieve data dynamically, enabling our applications to handle user data, perform CRUD operations, and manage persistent informatio...DiscussExpress
M B A R Kmbarkt3sto.hashnode.dev·Nov 1, 2024Express.js: Working with Sessions and CookiesIn this article, we’ll explore how to manage sessions and cookies in an Express.js application. Sessions and cookies are essential for preserving user data across multiple HTTP requests and for maintaining user authentication. Understanding Sessions ...DiscussExpress
M B A R Kmbarkt3sto.hashnode.dev·Oct 31, 2024Express.js: Implementing Authentication and AuthorizationIn this article, we will explore how to implement authentication and authorization in an Express.js application. These are critical components of web applications that ensure that only authorized users can access specific resources. Understanding Aut...DiscussExpress