This article was first posted to our product website CarbonLDP.com
What makes Carbon LDP a good fit for Angular applications?
Let's start with the initial pain you always face when building a new data-centric web app - the plumbing. You've got a lot of gritty work to do before you can have some real fun with the sexy front-end.You need a database server and a database. You'll want a decent schema design, which means you'll have to think carefully about everything the app needs to do. Depending on what you might use on the server side, your schema's likely going to be tied to a corresponding model in compiled, server-side objects. In addition to the server-side code model, you might also end up with a lot of SQL queries that create a hard coupling between your model and schema. Just setting all of this up is a pain, much less making changes down the road.
Carbon LDP gives you a server and database out of the box. What’s more, it's all neatly contained in a Docker container, which you can download and run with just a couple of commands. You can have a database ready and running in minutes rather than hours or days.
You won't need to worry as much about schema design. Carbon LDP provides schema-less flexibility. You can add new objects and properties with no need for schema changes, code compilation, or package deployment. You'll spend less time with up-front design, and you’ll be able to evolve your application more easily as requirements change.
In addition to the Platform, Carbon also provides a Workbench, a graphical user interface that enables you to explore and work with data as you code. The Workbench itself is, in fact, a pure Angular application that runs on Carbon - a great example of what you can achieve when you put Carbon and Angular together. You can examine our Angular code for the Workbench and find useful boilerplates on our GitHub page.
And what about security?
Typically, data-centric applications need to be secure. Carbon provides services for authentication and role-based access control. By using them, you can spend your precious time with Angular and leave the complexities of authentication and authorization to Carbon. If you want, you can also use the angular-carbonldp library to easily secure app routes to authenticated users.
Lastly, when consuming the data of your app, you must develop front-end services which, even with Angular, must be handmade - meaning that you must write each, create, read, update or delete (CRUD) request for each object type in the database. That development time is reduced when using Carbon’s SDK. Instead of writing your own HTTP requests, you can simply call ready-made CRUD functions available for your custom objects by way of the SDK.
In short, Carbon LDP provides all the back-end services you need out-of-the-box so that you can develop data-centric Angular web apps faster and easier. If that sounds good to you, why not Get Started now?