This folder contains examples of applications that demonstrate how to interact with a MongoDB database using Node.js. These examples showcase different use cases, such as managing items, handling library book records, managing product inventory, and more.
- Description: A Node.js application that allows users to manage a list of items stored in a MongoDB database. Users can add, view, update, and delete items.
- How to Run:
- Navigate to the
item-managerfolder. - Install dependencies:
npm install
- Start the application:
node index.js
- Use the CLI or API endpoints to interact with the database.
- Navigate to the
- Description: A Node.js application that manages library book records in a MongoDB database. Users can add, view, update, and delete book records.
- How to Run:
- Navigate to the
library-book-managementfolder. - Install dependencies:
npm install
- Start the application:
node index.js
- Use the CLI or API endpoints to manage library book records.
- Navigate to the
- Description: A Node.js application that allows users to manage product inventory stored in a MongoDB database. Users can add, view, update, and delete product records.
- How to Run:
- Navigate to the
product-inventoryfolder. - Install dependencies:
npm install
- Start the application:
node index.js
- Use the CLI or API endpoints to manage product inventory.
- Navigate to the
- Description: A Node.js application that allows users to manage a to-do list stored in a MongoDB database. Users can add tasks, mark them as complete, and delete tasks.
- How to Run:
- Navigate to the
todo-list-managerfolder. - Install dependencies:
npm install
- Start the application:
node index.js
- Use the CLI or API endpoints to manage your to-do list.
- Navigate to the
- Description: A Node.js application that allows users to manage user accounts stored in a MongoDB database. Users can add, view, update, and delete user records.
- How to Run:
- Navigate to the
user-managementfolder. - Install dependencies:
npm install
- Start the application:
node index.js
- Use the CLI or API endpoints to manage user accounts.
- Navigate to the
- Node.js installed on your machine.
- A running MongoDB database instance.
- Update the database connection settings in each app's
index.jsfile to match your MongoDB configuration.
- These examples use the
mongodblibrary to interact with MongoDB. - Ensure your MongoDB database is running and accessible before starting the applications.
- Example data or schemas may be included in the respective folders.