forest-express-[mongoose/sequelize]package to start Forest Admin in your project.
/forest/*. This is the reserved path used by Forest Admin to communicate with your project. This simple piece of code unlocks everything that is needed to benefit from Forest Admin features.
envSecret: This is the place to set the secret key provided to you when you onboard. This identifies your environment and your project. In this snippet, our
envSecretis stored as an environment variable.
authSecret: This is another secret key used to perform authentication.
objectMapping: This one is basically your ORM (Sequelize) or ODM (Mongoose).
connections: This wraps up the connections that Forest Admin should use to manipulate your data. We use the
defaultkeyword here to specify that we will be using only one connection. If you don't know where to pick up this connection object from, here are examples of what it look like in your code: