Getting Started With Building Todo App Backend

Search for a command to run...

No comments yet. Be the first to comment.
In this tutorial series, we will build the famous todo application with Node.Js using the ExpressJs library and MongoDB. The App will be API-centric with no Frontend UI.
So let's begin, You should create a project folder at this point to house all the source code for the backend part of this application. I'll call my todo-app-backend. Feel free to use the todo-app-backend as your directory. It's not patented : ) I a...
You've done it. I've done it. We've all done it.

Your AI Agent Has Amnesia. ByteRover Fixes It — Without Vectors Let's see how to built a customer support agent that remembers everything — using plain markdown files, BM25 search, zero embeddings, a

My GenAI cohort kicked off today, and what a first day! Right away we were reminded that AI isn’t magic — at its core, models like Generative Pretrained Transformers (GPT) are doing one simple thing:

Hello Folks👋, I Recently got Graduated🎓 in 2020, yep in the Pandemic. We all hit very hard by this Corona Pandemic and we all got stuck at home for very long. We all realize the Importance of Socializing, Fitness (Physically as well Mentally), Diet...

So after learning the basic commands of git in our previous section, let's see Git in action. If you already have a project to track your files then you can skip this section and if not then continue. Initializing a Repository from Non-existing Dire...

In this section, we will build the famous Todo application with Node.Js using the Express Js Framework and MongoDB as a NoSQL database. The app will be API-centric with no Frontend UI.
In a nutshell, if you want to learn how to build APIs with Node.Js, you have come to the right place.
If you are new to the Nodejs world you can follow up the below Tutorials to get more from this tutorial series, and if you have basic knowledge of Nodejs, Express JS and Mongoose then you can skip this.
NodeJs tutorial for beginners
Learn Express Framework by building an application.
Learn how to use Mongoose with
NodejsandExpress
Now you can grab a mug of coffee and let's get our hands dirty.
What is ExpressJs?
ExpressJs simply put, it's a web framework for Node.Js - stolen from the official docs. Taylor Otwell (Laravel's creator) once said, "Developers build tools for developers". ExpressJs was built for developers to simplify Node APIs.
What is MongoDB?
MongoDB is a NoSQL database. It's completely document-oriented. A NoSQL database allows you to store data in the form of JSON and any formats. If you want to learn more about MongoDB, visit the official documentation here
Now Let's start by defining our API routes.
I like to begin by defining my APIs. As it is very important for a developer to first think of how the API endpoints are going to look like and what they do, also they should be easy to remember and easy to use. The table below shows what APIs we need to create and what each does.
| Method | Path | Description |
| GET | /todos | Get all todos items |
| GET | /todos/:id | Get one todo item |
| POST | /todos | Create a new todo item |
| PUT | /todos/:id | Update a todo item |
| DELETE | /todos/:id | Delete a new todo item |
Having defined our APIs, let's delve into setting up the Express App and the project directories.
If you are a person who understands concepts better through videos, then you can Watch My Hands-On Workshop on Building A TODO REST API BAckend which we are discussing in this tutorial series.