Hugo based news feed project
k228593, k228592
We will use hugo framework to create news feed webservice, with news category.
will use Gitlab :
Ref : https://gohugo.io/
Hugo based static website code are given bellow gitlab repo
Source code link : https://gitlab.ie.u-ryukyu.ac.jp/k228593/hugo-based-news-feed/-/tree/master/
This is static webpage for news feed, to display latest news in news feed static page, we will create a golang based service that will take news feed url as input from file and create data for hugo-based-news-feed static page
We will use scheduler for updating news data in every 5 minutes
News feed helper source code : https://gitlab.ie.u-ryukyu.ac.jp/k228593/news-feed-helper/-/tree/main
Documentation:
This is hugo based news feed service, It will show static news feed from file
Here is the output of the project :
How it work : When the server will run by command hugo server -D. Then it will run the server on url : http://localhost:1313/
Hugo is mainly made for creating static web page, but news feed should be always updated to use this update database we use another project that will call any news feed public url and collect data format the data for hugo based news feed application
We have used https://news.google.com/rss?hl=en-US&gl=US&ceid=US:en url in our example project.
The news feed helper is created in golang to make dynamic news feed
Here is the code block for the project code .: https://gitlab.ie.u-ryukyu.ac.jp/k228593/news-feed-helper/-/blob/main/main.go
This golang based helper service will collect news feed, read and format and write to file database