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

https://github.com/steenhansen/sffaudio-count

initial commit
https://github.com/steenhansen/sffaudio-count

csv heroku mongodb nodejs

Last synced: about 1 year ago
JSON representation

initial commit

Awesome Lists containing this project

README

          

# Node.js Media Download Counter

## Live Example
[https://sffaudio-count.herokuapp.com/csv_output](https://sffaudio-count.herokuapp.com/csv_output)

This program counts media download requests in a MongoDB database, and then redirects request to a media file. This stops a cached WordPress site from spinning up PHP for a single database update.

## Run Locally
### Download 'Studio 3T' for MongoDB
### Create 'media\_downloads' MongoDB database
### $ npm install
### $ npm start
### localhost:5000/can\_pdf/abc.pdf
### localhost:5000/csv\_output/can\_pdf