Prerequisites
- Node.js 18+ installed
- Your database URI ready (PostgreSQL, MySQL, MongoDB, SQL Server, etc.)
- A Forest account (sign up if needed)
Steps
Create a new project
Go to app.forestadmin.com, create a new project, and choose Self-Hosted.
Follow the onboarding
The onboarding flow asks for your database URI and generates your back-end project. Before starting it, you’ll set its environment variables in a
.env file:FOREST_ENV_SECRET: identifies your Forest environmentFOREST_AUTH_SECRET: signs your users’ authentication tokensDATABASE_URL: your database connection URI
What you have now
A connected Forest back-end with every table from your database surfaced as a collection. Operators can browse, search, edit, and delete records out of the box. From here, the guide walks you through it step by step, starting by shaping these collections into a back-office your team can actually use.Troubleshooting
Back-end not starting
Back-end not starting
- Check that your
.envfile is present and loaded - Ensure port 3310 is not already in use
- Run
curl http://localhost:3310/forest, should return Forest metadata
No tables showing up
No tables showing up
- Verify your
DATABASE_URLis correct and the database is reachable from your machine - Check that the database user has read permissions on the relevant tables
- For SQL databases, the back-end needs access to
information_schemafor introspection
Need a hand?
Get help from our team
Stuck on setup? Reach out, we’ll help you get your Forest back-end running.
Next: Customize your interface
Organize your collections, fields, and create your first segment.