mongodb-to-do-app

A simple to-do app to understand MongoDB Atlas, using Node.js and Express.

Stars
0

To-Do App

A simple to-do app to understand MongoDB Atlas, using Node.js and Express.

Demo

See Demo deployed on Render

(user: learn, password: javascript)

MongoDB Atlas - CRUD

  • fetching items with find().
  • creating item with insertOne().
  • editing item with findOneAndUpdate().
  • deleting item with deleteOne().

Express

  • creating CRUD routes with Express: create-item, update-item and delete-item (server-side).
  • sending POST requests with Axios (client-side).

JavaScript

  • handling client-side rendering of items with JSON.stringify() and map().
  • adding, editing and deleting items on the fly with JavaScript.

Security

  • adding basic access authentication with WWW-Authenticate.
  • sanitizing items created or edited with sanitize-html.

Render

  • deploying on Render.

Based on Learn JavaScript: Full-Stack from Scratch by Brad Schiff (2019).