Cloudflare Apps Program
How my team wrote 12 Cloudflare apps with fewer than 20 lines of code

How my team wrote 12 Cloudflare apps with fewer than 20 lines of code

12/13/2018 · Guest Author

What this post added

This post details a technique for programmatically generating multiple Cloudflare Apps from a single integration template. It outlines a Ruby script that uses a 'replacements' object to define app-specific attributes and then automates the duplication and renaming of files within an app's directory structure. Finally, it iterates through the duplicated files to perform text substitutions for the app-specific values. This approach significantly reduces the development effort required to create numerous similar applications.

Read the original post ↗