feat: Init project with frontend and rudimentary authentication

This commit is contained in:
2025-02-07 15:44:04 +01:00
commit 84e701131f
20 changed files with 7054 additions and 0 deletions

23
legalconsenthub/README.md Normal file
View File

@@ -0,0 +1,23 @@
# Legal Consent Hub
## Setup
1. Create `.env` file with these variables:
```
BETTER_AUTH_URL=http://localhost:3000
BETTER_AUTH_SECRET=YOUR_SECRET
```
2. Generate database schema: `npx @better-auth/cli generate`
3. Migrate schema: `npx @better-auth/cli migrate`
## Common errors
### better-auth/cli generate
```
Couldn't read your auth config. Error: Could not locate the bindings file. Tried:
```
**Solution:** I was able to resolve by running npx node-gyp rebuild in 'node_modules/better-sqlite3'
https://github.com/WiseLibs/better-sqlite3/issues/1320
https://github.com/WiseLibs/better-sqlite3/issues/146