TheLastProject / Droidtoberfest

Check for Hacktoberfest-joining projects on IzzyOnDroid and F-Droid
https://droidtoberfest.sylviavanos.nl/
Creative Commons Zero v1.0 Universal
11 stars 3 forks source link

Idea: separate repository scanning from page building code #7

Closed randmon closed 1 month ago

randmon commented 1 month ago

Idea: Separate the code that scans the repositories from the code that builds the web page.

The output of the repository scan could be saved to a separate file, then used by a second script to build the web page.

This way, changing something only in the UI doesn't require the one-hour-long scan action to be triggered, only a separate smaller "web page build".

graph LR;
    scanChange(Change in scan script) --> scan([Run repository scan]);
    chron(Scheduled scan) --> scan;
    uiChange(Change in UI) --> web([Build web page]);
    scan -.saves-.-> file(File);
    scan --> web
    web -.uses-.-> file(📄 Scan results);
randmon commented 1 month ago

I was considering helping more with the UI, so I thought this would be a nice-to-have 😄