A simple Github Status RSS feeder server in Golang.
How to use it
Here is an exist Heroku Server which you can try directly.
//Get Github Starred RSS by user "kkdai"
http://githubrss.herokuapp.com/starred?kkdai
//Get Github Follower RSS by user "kkdai"
http://githubrss.herokuapp.com/follower?kkdai
//Get Github Following RSS by user "kkdai"
http://githubrss.herokuapp.com/following?kkdai
note: If you occur any problem with connect to http://githubrss.herokuapp.com, it is not code problem. Because I use Heroku free account and the quota is full because IFTTT query. XD
Publish to Heroku
-
Init git and commit your code.
git init
git add .
git commit -m "init project"
-
Login heroku
heroku login
-
Using Golang backpack
heroku create -b https://github.com/kr/heroku-buildpack-go.git
-
Vendoring: For Go 1.6 (refer here)
go get -u github.com/tools/godep
- Save your dependency
godep save github.com/kkdai/githubrss
- Submit your depdendency
git add .
git commit -m "godep"
-
Push your complete code to Heroku
git push heroku master
Add "Deploy to Heroku"
- copy app.json (refer more spec here)
- Remember must include buildpack. And all buildpack list here.
- Make sure your buildpack sync with what you use
- In my case, I use
https://github.com/kr/heroku-buildpack-go.git
:
- In my case, I use
"buildpacks": [
{
"url": "https://github.com/kr/heroku-buildpack-go.git"
},
{
"url": "heroku/go"
}
Installation and Usage
Inspired By
Project52
It is one of my project 52.
from https://github.com/kkdai/rss-webserver
No comments:
Post a Comment