Once Willow is installed the first thing you should do is to set up the database configuration so Willow can access the tables. This is done with the command:

./willow db:init

You will be prompted for what database driver to use. Currently these drivers are supported:

Next is the DB_HOST. This is the IP address or domain name where your database lives. The default is 127.0.0.1 (localhost).

If you selected any driver except SQLite you will be prompted for the DB_PORT. For MySQL this is defaulted to 3306.

Next you will be prompted for the DB_USER that Willow should use to log into the database. This user must have admin or admin-like privileges for Willow to be able to access the meta-data.

The DB_PASSWORD is next which should be the password for the DB_USER account.

The DB_NAME is the name of the schema that Willow should use.

Finally DISPLAY_ERROR_DETAILS is asked for. If you are running Willow in a production environment then this should be set to false.

Once you confirm that the configuration is correct Willow will create an .env file in the root of the project. You should then generate a Model, Controller, and Action for each table you want to expose in your API. See the Generate command for how to do this.