Commit Graph

18 Commits

Author SHA1 Message Date
Christopher Williams 6075d7be00 Add index page to display routes 2024-10-07 18:44:08 -04:00
Christopher Williams e72a47cc77 Cleanup the imports 2024-10-07 17:48:36 -04:00
Christopher Williams 35a2cd0606 Refactor the sqlite database to only ever have one connection
- Only allow one sqlite connection by using a static sqlite connection
- Remove the Database() constructor from lua. Access the database from
  the global db object
2024-10-07 17:44:48 -04:00
Christopher Williams ca4a157505 Add initial Dockerfile and script 2024-10-04 14:03:01 -04:00
Christopher Williams 47e2bd6364 Add AGPLv3 license 2024-10-04 12:59:31 -04:00
Christopher Williams 35f854ca10 Add RSS xml attributes
- Make all of the modules public
- Move execute_all_routes to the ScriptingEngine
- Attempt to fix the scheduling bug
2024-10-04 12:36:30 -04:00
Christopher Williams b81a3310e8 Add godot lua script 2024-09-26 19:46:31 -04:00
Christopher Williams 05ce7537b2 Add working implementation of multiple RSS feeds
- Add phoronix, 9to5mac and techcrunch scripts
- Add clap for basic argument parsing for disabling the scheduler
- Add clap argument for entering a cron string (the default value is
  wrong right now)
- Add `check_if_articles_in_feed_exist` that will return articles from
  the database that already exist
- Print out lua errors rather than just printing a generic error
2024-09-26 19:33:01 -04:00
Christopher Williams 62b2909668 Rename Scripting -> ScriptingEngine 2024-09-26 16:08:32 -04:00
Christopher Williams 4dbd73e1d3 Add database functionality
- Articles are saved after their route is executed
- Add test for database retrieval from lua
2024-09-24 20:19:25 -04:00
Christopher Williams f22c2e443c Document techcrunch lua script 2024-09-22 12:42:41 -04:00
Christopher Williams c8686df817 Add initial feed parser for techcrunch
- Able to replace rss content with entire article
2024-09-22 12:34:14 -04:00
Christopher Williams 2e558fb709 Able to return redis stored values to clients 2024-09-22 11:54:21 -04:00
Christopher Williams a0190a6056 Support executing routes when the scheduled time arrives 2024-09-22 11:09:34 -04:00
Christopher Williams 94bb76c294 Replace http server with warp
- Add initial task scheduler to execute the lua scripts in the
  background
2024-09-22 00:06:42 -04:00
Christopher Williams 49c47ebfd7 Allow lua to be able to get and modify any field 2024-09-16 21:35:11 -04:00
Christopher Williams fc8dd690c1 Able to modify rss and html trees 2024-09-16 19:12:27 -04:00
Christopher Williams b93dc26ebb Initial rewrite
- Working router and lua binding
2024-09-12 15:06:30 -04:00