Prerequisite You should have installed Node.js (version 20.0.0 or higher).

Configuration file

To make sure everything is set up correctly, please check the Configuration page for more information. Its necessary to set up most of the configurations before starting the server.

Environment Variables

Change the environment variables in the .env file with your own values. To generate an own BETTER_AUTH_SECRET, you can use the following command:

npx @better-auth/cli@latest secret

Admin Account

To create an admin account, you can use the following command:

pnpm admin create

You will be asked to insert the email and password for the admin account.

If you want to use social login, you have to create an account first and then update the account by using the following command:

pnpm admin update

You will be asked to insert the email for the admin account.

After that, you can login with the admin account and could access the admin page at http://localhost:3000/admin.