summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorBertrand Yuan <189593334+bertyuan@users.noreply.github.com>2026-04-27 11:18:38 +0800
committerGitHub <noreply@github.com>2026-04-27 11:18:38 +0800
commit8b9c0139a93c8b9d41068e5271d0fc6917d34fab (patch)
tree5a2fa120abd1618302ad734dd9048d6dd0a92294 /README
parentbc4538b0d876a7dec491ac0efec75dcb8b3a56aa (diff)
parent4951d49922be990a3cc92804a48856116ba651a8 (diff)
Merge pull request #14 from bertyuan/NagakawaMizore-patch-2
Update README with authentication key generation steps
Diffstat (limited to 'README')
-rw-r--r--README14
1 files changed, 14 insertions, 0 deletions
diff --git a/README b/README
index 2512df8..1460ae7 100644
--- a/README
+++ b/README
@@ -60,7 +60,21 @@ docker run -d \
Then, copy .env.example to .env and fill in the required environment variables
that suit your setup.
+
+Generate authentication key: This project uses Better Auth.
+A secure key of at least 32 characters must be provided.
+Please run the following command in the terminal to generate it:
+npx @better-auth/cli secret
+
+Add the generated string to the .env file:
+BETTER_AUTH_SECRET =The extremely long random string you just generated
+
Run: pnpm install
+
+Run installation of react-syntax-highlighter dependencies:
+pnpm add react-syntax-highlighter
+pnpm add -D @types/react-syntax-highlighter
+
Run Payload CMS migrations: pnpm payload migrate
Run database migrations: pnpm db:push
(optional: SKIP_ENV_VALIDATION=1 pnpm db:push)