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
- Host: GitHub
- URL: https://github.com/steenhansen/sffaudio-count
- Owner: steenhansen
- Created: 2017-12-30T07:49:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-11T04:47:08.000Z (about 8 years ago)
- Last Synced: 2025-01-30T04:42:38.597Z (about 1 year ago)
- Topics: csv, heroku, mongodb, nodejs
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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