sneakers-the-rat / paper-feeds

A FastAPI web server for creating RSS feeds for scholarly journals with the magic of adversarial interoperability
GNU General Public License v3.0
63 stars 4 forks source link

Click CLI interface #3

Open sneakers-the-rat opened 10 months ago

sneakers-the-rat commented 10 months ago

Following https://github.com/sneakers-the-rat/journal-rss/pull/1/

Lets make a click CLI interface for launching the server. We'll also need it later for doing migrations and etc.

I think it would be great if we could use FastAPI to make an "admin" endpoint, and then we can use the .env file to store a token so we can have the CLI interface both start/stop the server and also communicate with it while it's running to be able to eg. Manually trigger a feed update.

Lets say root command is journal-rss, lets start with

And address future commands as needed.

roaldarbol commented 10 months ago

Randomly, since you mentioned an admin endpoint - could this be useful? https://github.com/fastapi-admin/fastapi-admin