.env
file. We just need to copy and paste the .env.example
file and rename the copy to .env
. Here you’ll have a template with comments showing you the settings you need/might want to set.
NEXTAUTH_SECRET
in the .env file.
.env.appStore
file similar to the .env
file as this includes keys to enable apps.
AddNEXT_PUBLIC_DEBUG=1
anywhere in your.env
to get logging information for all the queries and mutations driven by trpc.
For email testing, set it to “1” if you need to email checks in E2E tests locally. Make sure to run mailhog container manually or with yarn dx
.
NEXTAUTH_URL
to the correct value. If you are running locally, as the documentation within .env.example
mentions, the value should be http://localhost:3000
.
In a terminal just run:
<user>
, <pass>
, <db-host>
, <db-port>
with their applicable values
CALENDSO_ENCRYPTION_KEY
(You can use a command like
packages/prisma/schema.prisma
)
yarn dx
- Requires Docker and Docker Compose to be installed
- Will start a local Postgres instance with a few test users - the credentials will be logged in the console
apps/api/package.json
So, it should look something like this after the changes:"dev": "set PORT=3003 && next dev"
Now, running yarn workspace @calcom/api dev
should start the server.