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.
- Frontend
- React: A JavaScript library for building user interfaces.
- react-bootstrap, Bootstrap: Styling and UI components to create a responsive and visually appealing user interface.
- Backend
- Node.js: A JavaScript runtime for server-side development.
- Express.js: A fast and minimal web application framework for Node.js.
- Mongoose: An elegant MongoDB object modeling tool designed to work in an asynchronous environment.
- bcryptjs: Library for hashing and salting passwords.
- jsonwebtoken: Used for creating and verifying JSON Web Tokens for user authentication.
- Features:
- Create, edit, and delete notes.
- User authentication for secure access.
- Modern and intuitive user interface.
- Install MongoDB: Visit the official MongoDB website (https://www.mongodb.com/try/download/community) to download the MongoDB Community Server.
- Start MongoDB server: by running
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. - MongoDB Compass: MongoDB Compass is the official graphical user interface (GUI) for MongoDB. It provides a visual way to interact with and manage MongoDB databases, making it easier for developers and administrators to explore and manipulate data.
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.- Basic query:
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
- Basic query:
-
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.