When it comes to WordPress, there are TONS of options out there for hosting. Almost every option that supports running PHP seems to also support installing WordPress.
It’s relatively trivial to install a WordPress site on a PHP capable server. At most, you can follow WordPress’ own 5-minute instructions, which covers downloading the packages, loading them on your server, and then running WordPress.
That’s why WordPress hosting providers typically also have the 1-Click install options. You might as well just use the hosting providers option to install WordPress and then be on your marry way. …
When you’re coding up a website, chances are, you’ll end up adding a form sooner or later. Whether it’s for a simple email newsletter signup, a registration form, or a contact form, webforms will likely make an appearance. And, you’ll probably be wanting to validate the entries users are typing in before writing to your database.
In the Alpas backend, when you are calling the form data over http, you can apply a set of pre-configured rules.
Let’s look at the following example:
Now, let’s hook this all up with an email service and deliver a real email! 💌
Add the following line to the list of dependencies:
After adding, refresh Gradle to import SparkPost into the project.
Previously, I showed you an example of integrating Stripe payments with Alpas and providing the Kotlin equivalent to some other examples provided by Stripe. Then, in a follow-up post, I showed how concise Alpas is as a framework by reducing that example even further.
Now, I am going to work off of that latest example and show how you can capture an email address and send an order confirmation email. This will be a multi-post series and, in this post, I’ll lay down the foundation of capturing an email and making it available to the Alpas back-end.
To get started…
Alpas is a concise web framework built with the wonderfully statically typed Kotlin development language.
Previously, I showcased using Alpas for a Stripe payment example. I used the standard file structure to create that example and showed how you can easily add Gson into the Alpas framework.
However, after looking through my previous post and while thinking how concise Alpas is as a framework, I wanted to tweak the example a bit to reduce the code and show off Alpas’s conciseness.
The result is the image at the top of this post.
In the revision, I brought everything into a single file, simplified the routes, removed some unnecessary code, and switched from Gson to Jackson, which is already built into Alpas.
The result is a nice, clean, single page of back-end code that works with Stripe’s payment example.
As in art, less is more. 🎨
We’ve lifted our heads up long enough to realize that it’s been 5 weeks since our last Alpas update. Wow, time flies when you’re working hard! ⏳✈️
So what have we been up to? A lot! And, when will you see what we’ve been working on? Very soon!
In our previous newsletter, I mention that we are working on a surprise. That surprise is Cleaver, a SaaS server provisioning and app deployment tool, and we are getting super close to bringing it to beta.
Not only will Cleaver make deploying Alpas apps a cinch, but since it is a very…
Well, it was a little unplanned but I got called out and challenged to create an example Stripe payment plugin for Alpas by way of Twitter today.
That’s Ashok challenging me. He knows I’m competitive and can’t resist a good challenge. Especially, one against the clock! ⏰
This is before I even really knew what the challenge was. 😂
Then, I looked at what the source of the Twitter comment…
Alpas is an awesome framework for making web applications. Alpas also works extremely well if you’re looking to build an API only app. In this tutorial, I’ll show you how you can make a simple RESTful API using Alpas.
Here is the list of tools and things that I used. 🛠
If you’re working in a lower environment, chances are, you are working with data and you need a good way to seed your databases after a database refresh.
I’ll show you how you can expand the built-in data factory in the Alpas framework to quickly seed your database with the dummy data of your liking so that you can get back to coding.
If you are working off of the Alpas Starter Template, you will notice a couple of folders under the database folder: factories and seeds. These two folders contain default database factory and seed files.
In UserFactory.kt, …
In a previous tutorial, I showed how you can create a ‘Show More’ button that utilizes AJAX in order to call and present more data without reloading the page. I thought I’d also show you how you can accomplish a similar task with VueJS.
Entrepreneur and Co-Founder of Little Bets (makers of Alpas and Cleaver)