Skip to content

Mongoose-Sandbox-MERN is a tool built with the MERN stack (MongoDB, Express, React, Node.js) that allows you to interactively test 25 essential MongoDB operations in a Postman-like UI.

License

Notifications You must be signed in to change notification settings

HasanYahya101/Mongoose-Sandbox-MERN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongoose-Sandbox-MERN

Mongoose-Sandbox-MERN is a tool built with the MERN stack (MongoDB, Express, React, Node.js) that allows you to interactively test 25 essential MongoDB operations in a Postman-like UI. Whether you're learning MongoDB or testing data interactions in Mongoose, this sandbox environment offers an intuitive way to explore the most widely used MongoDB queries.

🚀 Features

  • 🌐 Full-stack MERN application
  • 🧪 Postman-inspired UI for sending MongoDB operation requests
  • 🔧 Covers 25 core MongoDB functions using Mongoose
  • 🔍 Real-time response display (success, failure, returned data)
  • 🧰 Plug-and-play environment for learning MongoDB queries

📦 Tech Stack

  • Frontend: React, TailwindCSS, Axios
  • Backend: Node.js, Express.js
  • Database: MongoDB with Mongoose

📘 Supported MongoDB Operations

Category Function Description
Insert insertOne() Insert a single document
insertMany() Insert multiple documents
Read find() Query all matching documents
findOne() Find the first matching document
find().limit() Limit result set
find().skip() Skip records (pagination)
find().sort() Sort result set
distinct() Return distinct values
countDocuments() Count number of documents
Update updateOne() Update first matching document
updateMany() Update multiple documents
replaceOne() Replace a document entirely
findOneAndUpdate() Atomically find and update
findOneAndReplace() Find and replace a document
Delete deleteOne() Delete a single document
deleteMany() Delete multiple documents
findOneAndDelete() Atomically find and delete
Advanced aggregate() Aggregation pipeline support
bulkWrite() Perform multiple write operations
Indexes createIndex() Create an index
dropIndex() Drop a specific index
getIndexes() List all indexes
Collection renameCollection() Rename a collection
drop() Drop a collection
listCollections() List all collections

📷 UI Preview

Screenshot 2025-05-11 083343 image

🛠️ Getting Started

1. Clone the repository

git clone https://github.com/HasanYahya101/Mongoose-Sandbox-MERN.git
cd Mongoose-Sandbox-MERN

2. Add Environment Variables

Create a .env file in both client and server folders and enter your Secret Keys in them as per example.env.

3. Install Packages and run Project

  • For Server:
cd server
npm install
npm run dev
  • For Client:
cd client
npm install
npm run dev

About

Mongoose-Sandbox-MERN is a tool built with the MERN stack (MongoDB, Express, React, Node.js) that allows you to interactively test 25 essential MongoDB operations in a Postman-like UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •