To help me to produce images for my instagram account DevsQuotes I create this little service which help me to create content just sending the text that I want to appear on the image.
If you have Docker in your machine, is as easy as running:
make docker/run TEXT="My awesome message..."
This is what you will get on assets/cool_img.png
:
Do you want it running on Google Cloud? If you have your account configured and the APIs enabled, just run:
make gcp/deploy
At the end of the execution you will get the URL to make requests. Then just make a POST request with this as payload:
{
"text": "My awesome message..."
}
Just use the deployment button
After the deployment is done just make a POST request to your service URL with the following payload:
{
"text": "My awesome message..."
}