If you get some sort of error here, that probably means Rails isn't installed properly and you might need to check you followed all the above instructions correctly. This creates a new Rails app named "bannerbear-test". In your terminal, navigate to a folder where you keep your projects and run this command: rails new bannerbear-test
![ready maker rails ready maker rails](https://cdn.shopify.com/s/files/1/0026/1033/1721/products/ladder-safety-rail-5_ede763e6-2e01-4792-a973-154396817897_1200x1200.jpg)
I'll leave some additional steps for a Part 2 of this tutorial, such as adding webhooks, adding an interface to view the generated images, and deploying to a live server. This app will work for any Wikipedia article with an image, not just mexican food :)įor this tutorial I'm going to assume you're a Ruby on Rails newbie, but you know some of the basics of coding such as using the command line, and you know what an API is.
READY MAKER RAILS HOW TO
In this tutorial I will show you how to use Ruby on Rails to grab data from the web and send it to Bannerbear in order to turn Wikipedia articles into shareable graphics.Īlthough Wikipedia is the use case for the demo, this same technique could easily be adapted to work with basically any website! End result sample images Sign up for a free account to get started.īannerbear can integrate with various languages / frameworks and has many different use cases. The Bannerbear API is a simple REST API that generates custom images. Please share if you'd like to see more! Lets build an image generation app! Well, here's how!ĭisclaimer: I'm not sure how useful this will be to people, but I'm all for helping anyone learn new skills, especially given the current global crisis.
![ready maker rails ready maker rails](https://www.miteebite.com/wp-content/uploads/2018/03/LOCATING-RAIL-app.jpg)
I built a couple of demos using the Bannerbear API over the last week and there has been some interest on Twitter as to how I did it.