Getting Started
Last updated
Last updated
This is the official documentation of Forest Admin Cloud.
Forest Admin gives you access to the underlying code of your admin panel to fully customize its features. You can then add new actions, fields, collections, charts, and more to personalize your back office capabilities.
This is how Forest Admin guarantees to provide you with the highest level of flexibility, ensuring that you never encounter limitations when implementing your specific requirements.
Due to the nature of the subject, this section is intended for developers.
To access the code of your admin panel locally, run these commands in your terminal:
Replace with name
of the folder that will be created locally, typically matching your Forest Admin project.
Replace <your-env-secret>
with your Environment secret, which can be found by accessing the Environments tab in your Project settings and selecting the environment you want to customize.
After these steps, you can open this directory in your favorite IDE to start implementing the code customization. The project consists of a simple NodeJS application developed in TypeScript. All your custom code should be placed within the src/index.ts
file.
In the src/index.ts
file, the customizeAgent
function accepts an agent
instance as its parameter. By invoking the agent
's customizeCollection
method within this function, you can tailor a specific collection by adding new actions, fields, and other improvements.
Important information
Always ensure to implement a version control system for keeping track of code customizations. Without such a system, reverting changes to the original version won't be possible.
Finally, once you are ready, publish your changes by running the command:
To view the logs of your currently running code, execute you can use the logs
command.
By default, this command will retrieve the most recent 30 logs collected within the last month. For additional options, such as adjusting the number of logs displayed or changing the time range, please refer to the command's help page by using:
Please note that there may be a slight delay of a few seconds in accessing the latest logs.
As explained in the warning above, we strongly advise setting up a Source Control Management (SCM) system such as Git, as the original code will no longer be accessible once it is published.
Using an SCM tool is also highly recommended for starting collaboration with others, as they would only need to clone your repository, implement some new customizations, and publish the code to Forest Admin. As an example, using Git and GitHub, the development workflow would be something like:
Developer 1
Developer 2
In the .env
file, replace the FOREST_ENV_SECRET
environment variable with your environment secret. You can find your environment secret by navigating to the Environments tab in your Project settings and selecting the environment you want to customize.
Finally, Developer 2 can implement the new customization code into the project. Once ready, they can commit and push their changes to the GitHub repository and publish their updates on Forest Admin.