This is a simple project to upload excel data to MongoDB using NodeJS. The excel data is converted to JSON and then uploaded to MongoDB.
- Clone the repository
- Run
npm install
- Open another terminal and change directory to frontend
- Run
npm install
again - Now we have two ways to start the application
- Run
npm run dev
in the root directory - Run
npm start
in the root directory andnpm start
in the frontend directory
- Run
- Add your MongoDB connection string in the
.env
file in the root directory with keyMONGO_URI
- Upload an excel file
- Click on the
Upload
button - Select the sheet you want to upload
- The data will be uploaded to MongoDB