Loading repository data…
Loading repository data…
CodeMaverickVikash / repository
This Note Taking App is built using the MERN (MongoDB, Express.js, React, Node.js) stack. It provides a simple and efficient way to take and manage notes, making it easy to stay organized and focused.
This Note Taking App is built using the MERN (MongoDB, Express.js, React, Node.js) stack. It provides a simple and efficient way to take and manage notes, making it easy to stay organized and focused.
mongod command in the terminal, it's a global means anywhere you can run. you can use cmd/shell to work with the database but we have one more option MongoDB compass to work with the database. it's a GUI tool.
mongod is the primary daemon process for the MongoDB database system. It is responsible for handling database requests, managing data files, performing data transformations, and executing tasks related to database storage and retrieval. When you start mongod, you are essentially starting the MongoDB server.git clone https://github.com/CodeMaverickVikash/InstantNotes.git
cd InstantNotes
npm install
npm run start
cd backend
npm install
npm run start
MongoDB interaction using cmd: Run mongo in cmd, this command connects you with the MongoDB server, now you can interact with MongoDB, it's global, which means anywhere can run.
show dbs // to show all dbs
use your_database_name // Switch to a Database
show collections // Show Collections in the Current Database
db.your_collection_name.insert({ key: 'value' }) // Insert a Document
db.your_collection_name.find() // Find all Documents
db.your_collection_name.update({ key: 'value' }, { $set: { newKey: 'newValue' } }) // Update Document
db.your_collection_name.remove({ key: 'value' }) // Remove Document
exit
Debug nodejs app: you can't run "node fileName" and debugger parallelly, you need only run the debugger, it runs your app and debugger parallelly.