Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayyush08/dummy-data-generator
Node.js app using Express and Mongoose to generate and manage random employee data in MongoDB. Demonstrates CRUD operations and database interaction.
https://github.com/ayyush08/dummy-data-generator
Last synced: 26 days ago
JSON representation
Node.js app using Express and Mongoose to generate and manage random employee data in MongoDB. Demonstrates CRUD operations and database interaction.
- Host: GitHub
- URL: https://github.com/ayyush08/dummy-data-generator
- Owner: ayyush08
- Created: 2024-04-06T17:00:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T02:12:15.000Z (9 months ago)
- Last Synced: 2024-05-09T03:25:50.519Z (9 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random Employee Data Generator
## Overview
This Node.js application demonstrates the use of Express and Mongoose to interact with a MongoDB database. It provides a simple web interface that allows users to generate random employee data and save it to the database with a single click. This project is an excellent example of performing CRUD operations in a NoSQL database through a web application.
## Features
- Generate random employee data with attributes like name, salary, language, city, and managerial status.
- Utilize Express for server-side routing.
- Use Mongoose for MongoDB object modeling and data manipulation.
- Clear existing data from the database before generating new records to maintain uniqueness.
- Simple web interface built with EJS and Bootstrap for triggering data generation.## Technologies Used
- Node.js
- Express
- Mongoose
- MongoDB
- EJS
- Bootstrap## Getting Started
### Prerequisites
- Node.js and npm
- MongoDB### Installation
1. Clone the repository:
git clone https://github.com/ayyush08/Dummy-Data-Generator.git
2. Navigate to the project directory:
cd Dummy-Data-Generator
3. Install dependencies:
npm install### Usage
1. Ensure MongoDB is running on your system.
2. Start the application:
npm start
or if you prefer using Nodemon:
nodemon app.js3. Open your browser and navigate to `http://localhost:3000` to see the application in action.
## Contribution
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.