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
[ ] implement base click cli
[ ] start - with option to fork the process into the background
[ ] stop - obvi if we fork we need to stop
[ ] serve - does the wsgi uvicorn thing have a dev and prod mode? This one would be prod mode that doesnt live refresh on code changes
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 withstart
- with option to fork the process into the backgroundstop
- obvi if we fork we need to stopserve
- does the wsgi uvicorn thing have a dev and prod mode? This one would be prod mode that doesnt live refresh on code changesAnd address future commands as needed.