A simple demo project that reads a csv file with unlimited size using stream and saves each line to MongoDB database.
- NodeJS >= 18.
- Docker >= 20.
- Docker Compose >= 2.16.
- Install dependencies:
yarn install
- Place a .csv file named
data.csv
(unlimited size) in thedata/
folder.
- Start MongoDB database:
docker compose up -d
- Start service:
yarn start
Check the data being imported in your preferred MongoDB interface.
Enjoy yourself! =)