Green Mooose adalah sebuah layanan news/content aggregation (pengumpul berita / konten).
Another look a like service:
- line today / line feed
- feedly
- parse related url from content
- try using queued job / separate process to parse related url
- Install docker from https://docs.docker.com/engine/installation/
- Open docker terminal
- Change directory to
/path/to/folder/green-moose - Run
./docker-build.sh, wait untilSuccessfully built ..message displayed - Run project docker
-
Get API key from mercury web parser
- Sign up at mercury web parser
- Get
MERCURY WEB PARSER API KEY - Replace
API_KEYatparser/index.phpon line 9 with your ownMERCURY WEB PARSER API KEY
-
Open Terminal
-
Change directory to
/path/to/folder/green-moose -
Run
./docker-up.sh, wait until complete -
CTRL+Cto exit logs
Open this address on browser. Replace <docker.ip.address> with your docker machine IP Address
Add content url to db
$ curl -X POST -H "content-type:application/json" http://<docker.ip.address>:9065 -d '{"url":"https://www.techinasia.com/tia-sg-2017-arena-swingvy"}'
Get all content
$ curl -H "content-type:application/json" http://<docker.ip.address>:9065
Get content detail
$ curl -H "content-type:application/json" http://<docker.ip.address>:9065/1
- Open Terminal
- Change directory to
/path/to/folder/green-moose - Run
./docker-down.sh, wait until all installation complete