Hi! This my email-to-printer API. Just send an emai. Have credits? Great, it prints automatically! Don't? No worries, just wait for an admin to approve you.
- Clone this
git clone https://github.com/afonsoingles/printer - Run UV
uv sync - Set the envs!
You can use doppler by setting up a
DOPPLER_TOKENor use env variables directly. You can check the necessary env variables in the.env.examplefile. - Run it!
uvicorn main:app --reload --host 0.0.0.0
That's it!
This is (currently) the only worker. It forwards emails sent to my printer's email to my actual printer, so its files are actually printed. With the new authentication system, i will be adding the ability to see wich files you sent to the printer, via the Printer Dashboard.
I suppose no one wants to call API endpoints for a thing that should have a dashboard. So I built one, using AI. As i explained in the dashboard's repo, I'm more of a backend-dev, but i felt that this needed a dashboard. As i don't like to build websites, i let Amp do it with my supervision. I hope that it still is enjoyable experience and that it meets some high-level expectations
~ Afonso. For questions, or help, email hi@afonsoingles.dev