Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Bouhnosaure/Laravel-Twitter-MongoDB
Quick implementation of stream api - aggregations - map reduce with laravel
https://github.com/Bouhnosaure/Laravel-Twitter-MongoDB
Last synced: 5 days ago
JSON representation
Quick implementation of stream api - aggregations - map reduce with laravel
- Host: GitHub
- URL: https://github.com/Bouhnosaure/Laravel-Twitter-MongoDB
- Owner: Bouhnosaure
- Archived: true
- Created: 2015-05-18T22:32:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-19T08:00:58.000Z (over 9 years ago)
- Last Synced: 2024-08-01T19:47:54.648Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 398 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Quick implementation of Twitter's Stream API - Aggregations - MapReduce with laravel and MongoDB
all this stuff was made in 3.5 hours, the code is not clean,
it's just for tests and experimentations
all code is not commented, just look the routes :
- ```'/'``` is simili dashboard
- ```'/keywords'``` is for looking keyword after a map reduce
- ```'/exec/stream'``` is for collecting data from Stream API of twitter ( it's quick ~2800 tweets / 10 sec)
- ```'/exec/mapreduce'``` it's for mapreduce all keywords in all tweets- ```'/api/twitter/total'``` total of tweets in db
- ```'/api/hashtag/total'``` total of hashtags in db
- ```'/api/hashtag/aggregate'``` return collection of 20 most popular hashtag
- ```'/api/twitter/keywords/'``` return paginated list of keywords found in all tweets by mapreduceso i put my logic in services classes.
don't forget to increase exec_time_limit in phpand install mongo.so or mongo.dll on windows
Voilaaa !
thanks to jenssegers/laravel-mongodb and makotokw/twient for awsome composer packages :o
![alt tag](http://www.google.fr/url?source=imglanding&ct=img&q=http://www.exeterengineering.com/wp-content/uploads/2014/07/potatoes.jpg&sa=X&ei=HmlaVZekLcKuU8H8gbAC&ved=0CAkQ8wc&usg=AFQjCNFsD8ASgvb5yzQmpBYLUHZwZjduIw)
somes potatoes for you !