This repository contains the code for InsuredMine, a backend application designed to handle insurance-related data using Node.js and MongoDB.
The InsuredMine project is a backend application developed in Node.js that handles insurance-related data. It provides APIs to upload insurance data from XLSX/CSV files into MongoDB and perform CRUD operations on various collections like User, Account, and Policy.
- API to upload XLSX/CSV data into MongoDB using worker threads.
- CRUD operations for User, Account, and Policy collections
- Separates data into different MongoDB collections (Agent, User, User's Account, LOB, Carrier, Policy)
- Utilizes MongoDB for efficient storage and retrieval
- Checking cpu usage with 5 second interval. If cpu usage exeeds 70%, the server will restart.
- Added a post-service that takes the message, day, and time and it inserts that message into DB at that particular day and time.
- Node.js
- MongoDB
- Clone this repository to your local machine:
git clone https://github.com/sterinpaul/InsuredMine-File-Upload.git
- Install the required dependencies using npm: npm install
- Start the application using nodemon: npm start
To run the application, ensure you have MongoDB running and properly configured. Also, create a .env file in the root directory (inside 'server' folder) with the following details: PORT = '3000' MONGODB_ATLAS_URL = 'mongodb+srv://sterinpaul:wbCF8Y9maS4ueOEh@cluster0.xvub3l1.mongodb.net/insuredMine?retryWrites=true&w=majority&appName=Cluster0'
POST /api/user/upload-data'
GET /api/user/get-username?username=
GET /api/user/get-userpolicyinfo?username=
GET /api/user/get-all-user-policies
POST /api/message/add-message