Skip to content

Conversation

wahidahsharifi
Copy link

🧰 What's Changed:

  • Built the Todo List app from scratch using Express & Bun
  • Fully functional CRUD: users can add, view, complete/uncomplete, and delete tasks
  • Cleaned up & improved README.md with setup instructions, features, tech stack, and a roadmap

📝 Why I Built It:

This was created as my homework assignment for the class. It demonstrates full-stack fundamentals (routing, server-side rendering, CRUD operations) and sets a strong base for the upcoming React refactor.

⚙️ Setup & Testing Notes:

  • Clone and install dependencies with bun install
  • Create config/config.env file with your own DB credentials
  • Run bun start
  • Visit http://localhost:5000/ and test: adding, checking/unchecking, and deleting todos

The v1 version of app is built
Moved todo-related logic from index routes to a dedicated controller and route file. Removed patchSendFileRoot in favor of a view helper for serving views. Updated static file serving and adjusted frontend API endpoints to match new routes.
Moved morgan logging middleware to run before body parsing and static serving, and added route skipping for assets in development mode. Removed unnecessary console.log statements from todo controller. Updated project name and description in package.json, and moved @types/morgan from dependencies to devDependencies.
Updated the sendAllTodos controller method to fetch todos without using .lean(), returning Mongoose documents instead of plain JavaScript objects.
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.

1 participant