Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.js

3. 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.