Lab 6

Programming MongoDB with Mongoose. The demos call same-origin /api/lab6 so they render without a local mongod. The sibling Express server implements the same routes with Mongoose when DATABASE_CONNECTION_STRING is set, and the Chapter 5 in-memory arrays otherwise.

MongoDB connection

Students set DATABASE_CONNECTION_STRINGon Express. This demo checks the server's database connection status.

Click to read the connection status.

Lab 6 todos (Mongoose CRUD)


    Users

    NameRoleEmail