A golang REST API that you can query passing a RSS Feed URI, in order to read your news.
For now, it can return JSON but it also can return just text.
I mainly use this app with curl, through a shell.
- First, clone it
- cd inside it
- Run
docker build -t [name] .
- Run
docker run -d --env PORT=8080 -p 8080:8080 [name]
- There you go, it should run on your localhost:8080
If you query localhost:8080/api/cli/rss/{YOUR_RSS_URI}
you should get the list of the articles, with articles' number.
Then, query localhost:8080/api/cli/rss/{YOUR_RSS_URI}/item/{ARTICLE_NUMBER}
to "open" an article, which means getting access to its description as well as the URI link to read it in your Web Browser.
Note: YOUR_RSS_URI
should not contain "https://" or "http://".
If you query localhost:8080/api/json/rss
with the POST method, you can pass the following data :
{
"name": "FranceInfo",
"uri": "www.francetvinfo.fr/monde.rss"
}
so you get in return the articles in a JSON array. Each article contains the following properties :
{
"id": Int,
"title": String,
"desc": String,
"link": String
},
You can use it from here : https://go-rss.herokuapp.com
- Deploy to Heroku
[done !]
- Add a method so you can get JSON out of it
[done]
- Reorganize the code because it's a mess
[quite done]
- Add a post method
[done !]
Just wanted to practice go.