Really brief and tiny example that shows how to connect to a mongo db database reading one database table (document) and creating/exporting a CSV file (which is going to be downloaded once the page is requested)
-
express
-
json2csv
-
mongodb
#run command npm install
#hit command
node app.js