Aista – Magic Cloud – Generate a CRUD app in seconds

Hyperlambda FAQ

This is our Hyperlambda FAQ section, where we give answers to frequently asked questions. If you're looking for the answer to some specific Hyperlambda problem, this is where you'll probably find your solution.

How to handle exceptions in Hyperlambda

In this FAQ session we will look at how to handle exceptions in Hyperlambda. Exceptions are fairly straight forward in Hyperlambda if you’ve used exceptions in some other programming language previously. However, Hyperlambda also allows you to override the default logic for unhandled exceptions on a “per module” level if you wish. In this session we will go through all of these constructs, and show you how you can leverage exceptions in your own Hyperlambda code.

User registrations in Hyperlambda

In this session we will show you how to handle user registrations in Hyperlambda. Magic contains everything you need for allowing users to register in your cloudlet out of the box, including email verification, RBAC, etc. In this video I show you how these parts of Magic works. This allows you to use Magic as your SSO if you wish, including intercepting the actual authentication, to use some pre-existing logic. Below you can find additional resources.

How to send an email from a Hyperlambda file

In this FAQ session we show you how to send an email from your Hyperlambda endpoint. The process is extremely easy, and can be done by clicking two buttons, assuming you can correctly configure your SMTP settings in your Configuration settings. In this session we will use a pre-declared Hyperlambda snippet, which is why we can get away almost without writing code at all. Below you can find additional references.

HTTP Interceptors or Gateway endpoints

In this FAQ session we will show you how you can create an API gateway or interceptor. An HTTP API interceptor allows you to intercept one HTTP endpoint, almost the same way you’d inherit from a base class in classic OOP. The basic idea is to intercept your HTTP endpoint, with another HTTP endpoint, where your interceptor applies custom business logic, for then to invoke your intercepted endpoint. Basically the same result as you’d achieve using OOP and inheritance. Below you can find additional articles going into depth, and providing you with some example use cases.

More HTTP Interceptors or Gateways

In this video we go more thoroughly through how interceptors really works, and provides you with a general solution that allows you to reuse the same code, for multiple HTTP interceptors.

Create file upload and download endpoints

In this FAQ session we will show you how to create file upload and download endpoints, allowing you to upload for instance images, or other types of files, for then to later easily download them from your cloudlet.

Creating an E-Commerce web API

In this session we will create an E-Commerce web API using Hyperlambda, allowing user to purchase and pay for courses, integrating automatically towards Stripe. The basic idea is to restricts access to sessions in your course, by having only users belonging to a special role being able to access sessions – For then to have users paying to be added to your special role.

Automatically translate your apps

In this session we will create a Hyperlambda micro service, allowing you to automatically translate your apps. You can use this technique to translate anything really, including iOS apps, Android apps, React apps, etc – Due to that this technique is frontend agnostic, and doesn’t depend upon any specific frontend framework in any ways. You can find the associated micro frontend here.

Generating a frontend for your E-Commerce API

In this video we will look at how to generate an Angular frontend for the E-Commerce web API that we created in one of our previous FAQ videos.

Change your default database

Sometimes you want to use MySQL, PostgreSQL or Microsoft SQL Server as your default database. In this FAQ video we will show you how to accomplish just that.

Create a LowCode CRUD API in seconds

Create a cloudlet and start generating LowCode CRUD APIs within seconds