by dmje · 5y ago · 0 comments
WordPress.
Why? Incredibly easy to dev against. Powerful API built in. User model. Flexible theming. Plugins for extensibility. Multisite for more complex apps.
I've built a few web apps in house using it and am now making a couple for production use. I might one day find I need to get this made bespoke but I can't see a requirement any day soon. WP does everything I need.
WP is a full blown CMS. It’s very versatile and you can achieve a lot with just the core. Additionally the Gutenberg Editor is the definitive editor for building content-pages.
A few month ago I tried to find a CMS as feature-complete as WP. However, I wasn’t able to find any good alternatives. I also asked on another forum and summed up my favorite WP features:
- Extendable admin area
- Custom post types
- Single- and archive-pages/-routes
- Taxonomy aka categories and tags
- Dynamic meta data (especially with ACF)
- Solid page editor for content
- Action-/Filter-capabilities
- Shortcodes
- Open Source
- Very compatible upgrade philosophy
- Media Library including automatic image scaling
- User Login
- API Support with custom routes
However, you need to know, that WP is higher settled than frameworks like Laravel. Especially data-management gets tedious on bigger instances. Just have a look at the DB schema and you will see, what I mean. On our company we solved this issue by integrating Illuminate/Database btw.
The biggest business chore is usually around user management, roles, permissions—all easily expanded/modified through WP’s extremely well-documented core framework APIs. Custom REST API endpoints are a breeze to implement with or without authentication requirements. If you need external deps, you can manage them like any other modern php project with composer. Deploying is easy with docker and uploads sent off to some S3-like bucket.
One recent project I built had WordPress driving fully custom content for a set of giant LED screens in a corporate HQ lobby that allowed users to build presentations, manage a recurring and one-off scheduling, build, edit, and manage reusable content, view live video feeds of what’s currently on the screens, and request static image and video preview renders from an on-prem media server. Users authenticate via the typical WP dashboard experience, but have rich web app features presented to them for their tasks using the WordPress custom REST API endpoints and the existing WP data model behind the scenes (for the most part). Any business needs they presented were easily absorbed by WordPress through straightforward customizations. IMO, WP is an underrated contender in building CRUD-ware.
By using custom post types, ACF forms and user permissions you can get most stuff done pretty easily.
One of the things I’ve done quite a lot is to use Wordpress multi site for building apps. Then each new client has their own site. If you use mu plugins you can trigger a new site creation to make all the pages you need, and configure / populate them.
It’s a really compelling way of making apps, IMO
Seriously, whenever a customer asks for something relatively simple that I know can be implemented using WP, I usually do it. You already have user management and many other functions built in, and extending it is very easy. It comes very handy when all the customer wants is basically a CRUD connecting to some internal system.
I ask because not long ago what you write was true - but only if you've not seen how 'it can be' in modern stacks. WordPress is (was) great for a time that is (was) gone.
I'm saying was because I have not worked with WP in a while so I can't really judge.
That's why I was asking - for someone who does not have your experience starting WP today, in my opinion, would be a mistake. If you're a "proper" developer, there are much easier, less painful, ways of making money (and making websites) than using WP.
But that said, it's amazing to see what a proper developer with a lot of experience with WP ecosystem (which I'm guessing you are) can churn out in the website game.
I guess I'd also like to chew into what "a website" is. I mean - I still maintain that for basically all "normal" content-rich websites you'd be hard pushed to find a better solution than WordPress. It's not just the rich plugin/theme/development ecosystem* but the fact that editing is so, so simple that makes this the case - so although many modern solutions for delivering websites focus lots on the front end, actually (in my sector / experience - working with very content rich, complex sites), it's "a nice editing experience" that is critical too.
At "transactional" level - ie as your "web thing" is less about pure content and more about "something app-like" then it becomes a different sort of problem. Saving state and logins and so on is absolutely in WP's space in theory, but you definitely run the risk of entering an arena where you're making it do things it really shouldn't be doing, and that can get really gnarly really quickly.
But - having said that (and back to the thread) - I've been pleasantly surprised that using WP as an actual (simple!) web app framework brings lots to the table, and not many people have thought about it in this way.
[* this is also a downside. We do "proper" WordPress development - fully bespoke "from scratch" themes, proper deployments etc - but many, many people just throw up a Divi site with 80 plugins and say they're a WordPress developer...]
The functions / classes you use could be in a plugin for portability, or just on the page or in your functions.php file for ease, whatever you like.
The nice thing about building like this for me is that the journey from nothing to something is short and so much is supported out of the box.
This sounds really tempting :). Thanks!