DEV Community

Cover image for Create a Web API backend in seconds - No coding required
Thomas Hansen
Thomas Hansen

Posted on • Updated on

Create a Web API backend in seconds - No coding required

If you're an Angular, React, Vue, iPhone, or Android developer, you'll need a backend at some point. Unless you're one of those who knows PHP, Python, or C# to the core, this is obviously a problem for you, especially if you want to focus only on your frontend skills.

We solved the problem for you by allowing you to create a Web API backend wrapping your database in seconds, and we'll even host your backend for free, giving you the opportunity to test our system for 90 days. This allows you to generate a backend in some few seconds, not worrying about hosting it, such that you can focus only on the frontend parts of your problem. 3 clicks and you've got your backend, literally. Below are screenshots of the process.

Generate a backend CRUD API in seconds

Then as you've created your backend, you'll need a database. You can either connect to your existing database, or use one of our free and open source databases found in our plugins section. Below is a screenshot of installing the "Chinook" SQLite database into your backend.

Low-Code CRUD database API generator

At this point all you need to do is to generate a CRUD API wrapping your database.

Generating a CRUD API wrapping your database

And literally, you are done! Now you can play around with your newly generated CRUD API using the "Endpoints" menu item.

Invoking your newly generated CRUD endpoints

All in all the process takes about 1 minute before you've got your HTTP Web API, allowing you to focus on the Angular, React, Vue, iPhone, or Android development parts. Let me know in the comments what you think, and please have in mind that we released our hub yesterday and things are a little bit in the BETA stages yet. Below you can see me walking you through the entire process. If you want to try it out for yourself there's a link below where you can create your backend.

Discussion (6)

mshafiey profile image

In complex queries like multi tables join I like to write it myself, can I make an API with my own query?

polterguy profile image
Thomas Hansen Author

Thx Mohsen for a great question, and the answer is yes you can. You can either automatically have Magic wrap your own custom SQL by using the CRUD Generator and its "SQL" tab, or manually create everything yourself as I demonstrate in the following followup article below.

The link above would also allow you to apply any custom business logic, such as authorisation requirements, validators, and other parts needed to create a working HTTP endpoint :)

userx2022 profile image

Great article!
Is it a need to know Hyperlambda, or is possible to work with Magic without having any idea about Hyperlambda?

polterguy profile image
Thomas Hansen Author

Great question, if you have an existing database you want to wrap inside a CRUD API, there is no need to know Hyperlambda, and you can only rely upon the CRUD Generator to do all the work for you. If you have additional business logic requirements not possible to solve through configuring the CRUD generator process, you will benefit from knowing Hyperlambda, but you can probably figure out most of the stuff you need to know without knowing any Hyperlambda.

So the answer in general is no, however it is beneficial to understand the basics of the language obviously ... :)

slava_supro_8795550bb26ca profile image
Slava Supro

What will be the cost after 90 days?

polterguy profile image
Thomas Hansen Author

Great question. It depends. We're not 100% certain yet, but the current price structure that we're working with and we believe we'll use is as follows.

  1. Students - $10 per month for a single cloudlet
  2. Professional - $49 per month for a single cloudlet
  3. Enterprise - Depends, varying from some few hundred dollars per months to tens of thousands depending upon the needs of the company

Notice, I don't want to guarantee the above prices, since it depends upon our own cost of hosting things, which is why we're doing the MVP/BETA release to get more data such that we can start calculating, but we're 95% certain of that we'll end up with something very close to the above.

We really want to provide something for students too, investing in the future, since it's probably one of the easiest methods to teach yourself (other) constructs such as Angular, React, Swift and SQL :)