It also offers authentication and file storage for media files.
It also integrates with popular technologies like Vue, Svelte, React, Angular, and Flutter.
Services Provided by PocketBase
PocketBase provides most of the services offered by other backend providers like SupaBase.
Note that PocketBase only scales vertically.
This means you oughta add more CPU and RAM to increase the processing power.
If you have a large utility, consider abackend provider like Firebasethat allows horizontal scaling.
There are several links, so ensure to download the one compatible with your environment.
Once youve downloaded it, extract and navigate to the pocketbase folder.
Then run this command in a terminal:
This command should start a web server at these routes.
Navigate to the http://127.0.0.1:8090/_/ URL to create your first collection using the admin dashboard.
An auth collection contains extra fields to manage users, like username, email, and verified.
you’re able to create, view, update, delete, or import collections.
To follow along, start bycreating a React project.
To illustrate how PocketBase integrates React, youll create the helper functions for a to-do app.
These functions will create, update, retrieve, and delete items.
Create a Todo Item
In app.js, create a function called addTodo.
This function adds a new record in the todos collection.
The updateTodo function finds the to-do item based on the record Id and updates it with the new data.
Why You Should Use PocketBase
PocketBase is the best backend for small to medium projects.
It requires minimal setup and is easy to use.
PocketBase is also self-hostable, and you could host it on a local server or a VPS.