explorers and welcome to another video today we're going to talk about fresh RSS and in the Before Time the long long ago before we got all our news from Facebook or Tick Tock we actually had newspapers that were sent out every day that you could read in paper form and uh when they try to digitize that they made a bunch of different web pages you needed to go to a lot of different places in order to read your news and at the same time people started the blogging as well so got a lot of text
at the same time that needed to be aggregated in some way and in order to get it aggregated we needed a really simple syndication protocol RSS in order to distribute this data and fresh RSS is an RSS reader that is trying to aggregate these news feeds into one flow so you can actually read it simply um there were before a lot of different kinds of these RSS readers but they have fallen out of favor because we get our news other ways now but I wanted one in order to read some of my blogs so I
can actually follow up on news so I wanted to install fresh RSS and I'm setting up a pure Debian install here and then I'm gonna do an install of this feed reader so if we switch out over to my screen here I can start the install and usually when you have a Debian installed you need to have it fully upgraded so let's run that process and get the pseudo password in as well so we have that all update so it's a fully update to date Debian system then we need a bunch of dependencies so we
need a patch I will run it on a patch web server that is not required you can do any web server that you like it doesn't have an included web servers you need one but I'm running a patch at this time I need PHP that's the main language for a simple RSS I will use the Maria DB it also supports sqlite and postgres it wants to have curl in order to do upgrades if you install a normal um version you can do that by curling the new version MB string is good for different languages you
can actually handle languages like yeah Latin and so on and then we have MySQL of course the PHP plugin for that sip so it can unzip if it doesn't install um XML it handles a bunch of different XML formats so simple RSS is an XML format so you need that and in my case I'm using git because I will get the git repository directly from the source so that's why I'm installing that so A bunch of different libraries and dependencies to install and there the install is done and as soon as you install an infrastructure
service you want to make it secure and the team at Maria DB has done this very simply by having a script called MySQL secure installation if we run that we can enter the current user for root it's nothing at the moment which is not good uh we want to switch to use the Unix socket we want to change the root password so here we need to put in a secure routes password not query as I do we want to remove the anonymous user we want to disallow remote login if you have a web server that
actually connects to a different database server of course you need to keep that open and I want to remove the test database and reload all the privileges so now my Maria DB is up and running and ready to start working so if we log into it here and Supply the password then I can create the database here so I want to create a fresh RSS database nothing strange there and I also want to set privileges to it so I will grant all privileges to this fresh RSS database all tables to the use of fresh RSS
at localhost identified by query not the best password but it works now I want to install the software so let's switch over to my www directory here in VAR and I will git clone my own repository of fresh RSS here and I will show you why later on um so let's clone that out it's not that much data we want to make it readable by ourselves my user so I changed it over so recursive all directories of the fresh RSS I want my user to own that and then I can go into this directory and
then I want the data directory to be uh owned by vvv data which is the Apache web server so it can actually read and write there because it will read and write feeds to that directory and then we want to configure the site this could be configured as a virtual host site of any kind but in my case I'm just going to use the default one and switch it over it has a document Road of HTML so let's change that to Fresh RSS and the root directory for the website is just P I don't know
why but you put it in P um and there is a bunch of other directories here you have a p you have an lib data and so on and and data is where you have all that data and app is the application you have a CLI interface uh you could add extensions there is a bunch of docs you could run it in a Docker container and so on so there is a bunch of different options here and then I want to reload my Apache here so if you go over to my uh browser here and
go to I think 61 was the next IP or maybe 62. yep there we have it so this is my fresh RSS install I want to use language English of course it does a bunch of shicks here so see that everything is installed we all already went through all the different things that was required so we have all green here but if you have missed the step or haven't installed all the dependencies you can see here what you are missing if we go to Next Step here if you have postgres insole or sqlite you can
choose it as a database type here then we have the database username which was fresh RSS the password I put in that security in the database let's go back is the same as fresh RSS here so and then I want to put in a user and I will just have the the same password here and congratulation installation process is done so here we are in the actual interface of this service and we can see here that we have all the releases in informed here so you already get an RSS feed of the release schedule of
this application so you know when you need to update so here we can go in and read what's in the 121 release of this application so that's really nice I I want to go into the subscription management here and here you can add a feed so you just put in a new video URL press add and then you have that in your system I have a bunch of each already so I will import those if I go in here and choose one of files and import that it will import 10 feeds that I have set
up already and you see here what I think is a little bit of a problem so here I get a bunch of news from DN which is a Swedish news source I get some YouTube from TechCrunch in there I get some Hacker News later on so these are not in the publication date order and this had actually been discussed a lot in the fresh RSS Community if we look at this GitHub post here they say okay it's not in the right order the developer said that yeah you can do a search like this to get
a specific date and then they were talking about that that it's not really possible at the moment and it's really hard to do 17 dislikes of that post uh and on another post here they are outlining what is the problematic part about this and other systems are not accustomed to this and so on and it got some dislikes as well it gets better if you run it for a while as I did now when I imported a bunch of feeds they are in a very uh strange order but if you update this after an hour
for instance and you get new news it's added in the way that it it goes by ID and the ID is added to the database so it's a kind of freshness metric but so you don't get the perfect date but you get better at least if you run it for a while so this is the worst case scenario I would say but if we switch over to my repository here again uh we actually have this checked out and I have made a small change here that I could check out so if I check out um
order by date instead so I have a different branch for that and then switch back to this screen here in the settings now in the reading order I have added this extra checkbox sort by publish date disable pagination so if you have um The Ordering of publish date it can be a little bit tricky to get the paging agent to be correct and I didn't want to fuss with that because I have a bunch of feeds but if you remove after 200 messages you never really get a long list so it will not take that
much time to actually load it and you read more than you actually load so disabling patient Asian in my case is not that bad so if I check this and save it down here it will remove this article per page disable that and also this load more article at the bottom it will be disabled so if we switch back to this screen then you see now they come in publication date order instead which is a better way of reading it in my opinion so I made it a checkbox so you could choose if you want
to use it or not um and I will probably make a PR of this I don't know if the main developer thinks this is a good idea or not they have spoken out multiple times and said that this is not something that Community wants but if you have at least 20 people that thinks that think that that is a bad decision maybe they can reconsider and so I will install this on my system so I can actually read some news I think it's a very useful tool it's pretty nice interface and yeah if you have
a bunch of RSS feeds that you want to follow and keep track of News why not try this out so if you look at the commit I'm here it's not that much of a change and this is using this kind of model view controller um interface so in order to get something in I needed to add to the controller that I needed to read something out and I added to the index controller that I wanted to read the specific thing um and then I put it into the entry dial list where so I know this
value in the data access object or something like that now and then we have a way of saving this and the context we need to keep it in the fresh context so we can actually use it later on um and then in the dial here we have two different changes one is the publication date we can change it if it's sort by publication date then we use order by date instead of order by ID and we do that twice as we have another one down here and that does the Sim similar things on another expression
and then we have a bunch of ways of sending it in to different functions and here we have some translation and in this form group here I just add to two other posts here that I want to disable those if it is set and last but not least we added to the JavaScript and at the bottom here when we have uh two handling of the auto scroller to load more I disable those as well in JavaScript so it's not that much code but it's something that you could use if required to have a feed in
publication date order without page Nation so this was what I wanted to cover today I hope that you found this interesting I hope that you learned something today if you like this video give it a like share it with your friends and colleagues if you haven't subscribed yet please do that if you have any comments or suggestions leave them down in the comment section down below and I really hope to see you in the next video [Music] foreign [Music]