Mar 17 Β· 3 min read Β· So in my last post I built my first Express API with GET and POST routes. It worked great but there was one problem whenever I refresh my server all Data got vanish that's simple because I was storing
Join discussion
Mar 14 Β· 20 min read Β· Series Navigation Part 1 : Concepts, Project Setup, Configuration & Models (previous) Part 2 : Core Multi-Tenant Logic β you are here Part 3 : Migrations, Socket.IO, Performance & Production (comin
Join discussionMar 14 Β· 20 min read Β· Introduction Backend development can feel mysterious at first. You write some routes, connect to a database, test in Postman, and suddenly your app starts behaving like a real product. This guide is a
Join discussion
Feb 19 Β· 4 min read Β· While developing my campground listing application, I encountered a subtle but instructive issue involving Mongoose virtual fields. The schema was properly defined, the virtual property was implemente
Join discussion
Feb 17 Β· 4 min read Β· By the end of Day 31, students will clearly understand: What MySQL is Why we use MySQL in real projects How to install MySQL Community Server (latest) What is MySQL Workbench and why we need it How MySQL fits with Node.js projects π No coding...
Join discussionFeb 17 Β· 4 min read Β· π― Why This Comparison Is Important? As a Node.js developer, one of the most important decisions is choosing the right database. Two very popular databases are: MySQL (SQL / Relational Database) MongoDB (NoSQL / Document Database) Both are powerf...
Join discussionFeb 15 Β· 6 min read Β· MongoDB schemas are flexible. Thatβs exactly why designing them is difficult. Here are the schema design patterns I learned while building Roavelo. Embedding vs Reference This is the most important decision in MongoDB schema design. Embedding: Countr...
Join discussion
Feb 12 Β· 9 min read Β· ποΈ Complete Folder Structure todo-app/ β βββ server.js βββ package.json βββ .env β βββ config/ β βββ db.js β βββ models/ β βββ User.js β βββ Todo.js β βββ Comment.js β βββ controllers/ β βββ userController.js β βββ todoController.js β ββ...
Join discussionFeb 12 Β· 3 min read Β· πΉ Why Do We Need populate()? In MongoDB, collections are separate.When we use referencing, we only store an ID, not full data. Example: { "passengerName": "Amit", "train": "65fae91c2b..." } This ID alone is not useful for UI. π populate() help...
Join discussion