Use Forest Admin with a read-only database

Although you'd be denying yourself some native features of Forest Admin (CRUD), this may be mandatory for you because of your project's architecture or security requirements.

If you only want some fields to be read-only, check out this section.

To set up Forest Admin with a read-only database, follow those steps:

Step 1: set all your collections as read-only

A collection can be set as read-only from its settings, accessible using the Layout Editor mode:

You must disable all permissions there, as described in this section.

Repeat this for each of your collections.

Step 2 (optional): interact with your data using Smart Actions

At this point, your Forest interface allows you only to browse your data and not interact with it.

You still have the opportunity to interact with your data according to your processes with a little coding: