A full-stack Node.js + MongoDB project that generates random employee data with a sleek Bootstrap UI.
Perfect for testing, seeding databases, and learning MERN stack basics.
- Helps developers seed realistic data in MongoDB
- Eliminates manual data entry for testing
- A starter template for projects involving data generation
- Showcases integration of Node.js + Express + Mongoose + EJS + Bootstrap
- ✨ One-click generation of employees
- ✨ Data automatically stored in MongoDB
- ✨ Responsive Bootstrap 5 UI
- ✨ Success toast notifications
- ✨ Auto-updating table of employees
| Layer | Technology | 
|---|---|
| Backend | Node.js, Express.js | 
| Database | MongoDB, Mongoose | 
| Frontend | EJS Templates, Bootstrap 5 | 
| Utilities | Nodemon (dev), Random data utilities | 
📦 DummyDataGenerator ┣ 📂 models/ # Mongoose models ┃ ┗ Empolyee.js ┣ 📂 views/ # EJS templates (frontend UI) ┃ ┗ index.ejs ┣ 📜 dummydata.js # Main Express server ┣ 📜 package.json # Dependencies & scripts ┣ 📜 package-lock.json # Lockfile ┣ 📜 .gitignore # Ignored files/folders
git clone https://github.com/Arsh-pixel-cmd/Dummy-Data-Generator
cd Dummy-Data-Generator2️⃣ Install dependencies
npm install3️⃣ Setup MongoDB
Ensure MongoDB is running locally. Default connection:
mongodb://your_connection_string/your_database_name4️⃣ Start the server
npm run dev✅ Console Output:
Example app listening on port 3000- Open browser → http://localhost:3000
- Click ⚡ Generate Employees
- Employees appear in the MongoDB employeescollection
- UI table displays the latest employees
- ✅ Toast appears: Employees generated successfully!
{
  "name": "Sanya",
  "salary": 78000,
  "language": "JavaScript",
  "city": "Pune",
  "position": "UX Designer",
  "isManager": true
} 
 
 
You can also use the backend API without the UI:
| Method | Endpoint | Description | 
|---|---|---|
| GET | / | Renders homepage (EJS) | 
| GET | /generate | Generates 10 new employees & returns JSON | 
- Fork the project
- Create a feature branch (git checkout -b feature/newFeature)
- Commit changes (git commit -m "Added new feature")
- Push & Open a PR
Licensed under the MIT License — feel free to use & modify.