Skip to content

In-Memory Todo CRUD API with Node.js and Express#275

Open
beabcanoy wants to merge 3 commits intoZeff01:mainfrom
beabcanoy:beverly-canoy/1-2-years-backend
Open

In-Memory Todo CRUD API with Node.js and Express#275
beabcanoy wants to merge 3 commits intoZeff01:mainfrom
beabcanoy:beverly-canoy/1-2-years-backend

Conversation

@beabcanoy
Copy link
Copy Markdown

A simple RESTful API using Node.js and Express that manages todos in memory. Supports creating, updating (including toggling completed), and deleting todos with validation and clear messages. All data is stored in a shared array that resets when the server stops or there are changes in code, ideal for learning backend development, testing endpoints, and learning without a database.

Copilot AI review requested due to automatic review settings March 23, 2026 11:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a simple in-memory Todo REST API to the backend Express app, exposing CRUD endpoints under /api and using a shared array as the data store.

Changes:

  • Switch backend runtime to ES modules and mount /api todo routes.
  • Add todo routes + controller implementing create/read/update/delete for in-memory todos.
  • Add an in-memory todos data module and a dev script for local development.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
backend/index.js Converts server entrypoint to ESM, enables JSON parsing, mounts /api routes
backend/package.json Declares ESM mode and adds dev script + new dependency entry
backend/routes/todo.routes.js Defines REST routes for todo CRUD endpoints
backend/controllers/todo.controller.js Implements CRUD handlers and ID generation
backend/data/todos.js Adds shared in-memory todos array

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

beabcanoy and others added 2 commits March 26, 2026 11:22
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants