Quickstart
Build your first Bludia backend in a few minutes. In this guide, you’ll create a project, define a collection, add fields and records, generate API access, and make your first request to the Bludia API. By the end, you’ll have a working backend that can be connected to a web or mobile application.Bludia is currently in beta. Some features and interfaces may change as the platform evolves.
What you’ll build
For this quickstart, we’ll create a simple Tasks API. The final backend will look like this:Before you start
You’ll need:- A Bludia account
- Access to the Bludia dashboard
- An application capable of making HTTP requests
1. Create a project
Sign in to your Bludia dashboard. From the dashboard, create a new project. Give your project a name, such as:Tip: Create one Bludia project for each independent application or backend you want to manage.
2. Create your first collection
Open your project and navigate to: Collections → Create Collection Create a collection called:tasks collection ready for fields and records.
3. Add fields
Open yourtasks collection and add the following fields:
Your collection should now represent something similar to:
4. Create a record
Open the Records section of your collection. Create your first task:5. Create API access
To access your project from an external application, create an API key from the project’s API settings. Navigate to: Project → API → API Keys Create a new API key and give it an appropriate name. For example:Security: Treat API keys as credentials. Never commit private keys to Git or expose sensitive server-side credentials in publicly accessible frontend code.For more information, see API Keys.
6. Make your first API request
Your Bludia project exposes API endpoints that allow applications to interact with project data. A request generally looks like:7. Create a record through the API
You can also create records programmatically. For example:tasks collection.
You can then retrieve, update, search, filter, or delete records through the API according to your project’s permissions.
See Records API for the complete API behavior.
8. Connect your frontend
Bludia is designed to work with the frontend technology you already use. For example, a React application can communicate with Bludia using a normal HTTP client.- React
- Next.js
- Vue
- Flutter
- JavaScript
- TypeScript
- Mobile applications
- Other backend services
9. Add authentication
The quickstart above uses API access to demonstrate the basic data flow. For applications with users, you’ll normally want to add authentication. Bludia authentication allows your application to identify users and create authenticated application sessions. The general architecture becomes:10. Add authorization
Once users can authenticate, you can control what they are allowed to do. For example:11. Add backend logic
Your application’s requirements may eventually go beyond CRUD operations. For example, you might want to:- Automatically update a field
- Validate data
- Send an email
- Call an external API
- Perform a custom calculation
- Execute application-specific business logic
