Tutorial: publish a client portal
Build a small portal where clients sign in and see only their own orders. It uses the application builder, a user source and filtered data sources.
Step 1 – Data
In a database create:
Clients: Name (text), Email (email), Password (password field),
Role (single select: Client).
Orders: Number (text), Client (link to Clients), Status (single
select: Received, In progress, Shipped), Total (number), Date (date).
Add a client with an email and password, and a few orders linked to it.
Step 2 – Create the application
- + New → Application named
Client portal. - Application settings → Integrations → add a Local Basemind integration (it acts with your permissions, on the server).
- Application settings → Users → add a user source of type Local
Basemind for the
Clientstable, withEmailas email,Nameas name,Passwordas password andRoleas role.
Step 3 – Login page
- Add a page
Loginwith path/login. - Add a Login element that uses the user source.
- In its Events tab, after login, Open page →
Orders.
Step 4 – Orders page
- Add a page
Orderswith path/. - Page Visibility: Logged-in visitors; redirect others to
/login. - Data → List multiple rows from
Orders, with a filter Client has → the formula User → Id. Each client only sees their own rows, because the filter runs on the server. - Add a Heading with the formula
Welcome,+ User → Name. - Add a Table element with the data source and the columns
Number,Date,StatusandTotal. - Add a Button Log out with the action Logout.
Step 5 – Order details
- Add a page
Orderwith path/order/:id. - Data → Get single row from
Orders, row id = page parameterid, with the same client filter. - Show the fields with Heading and Text elements.
- In the
Orderstable element, make theNumbercolumn a link to theOrderpage withid= current record id.
Step 6 – Theme and publish
- Settings → Theme: set your brand colors and font.
- Settings → Domains: add a subdomain such as
portal.apps.example.com, or your own domain with aCNAMEto the server. - Click Publish.
Test it in a private window: sign in as the client and check that only their orders are shown.
Security notes
- Always filter by the logged-in user in the data source (server side), never by hiding elements only.
- Give each element and page the smallest visibility needed.
- Remember to publish again after every change.