fix: update documentation and configuration files

This commit is contained in:
2026-03-29 19:26:50 -07:00
parent 00aa8cf044
commit 26d9c7e79e
50 changed files with 6264 additions and 2627 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
# Start the dev server in background
echo "Starting dev server..."
npm run dev > /tmp/next-auth-test.log 2>&1 &
SERVER_PID=$!
# Wait for server to start
sleep 8
# Try to register via API
echo "Attempting to register admin user..."
curl -X POST http://localhost:3000/api/auth/sign-up/email \
-H "Content-Type: application/json" \
-d '{
"email": "david@dhg.lol",
"password": "admin",
"name": "David Admin"
}' \
2>/dev/null
echo ""
echo "Checking if user was created..."
sqlite3 prisma/dev.db "SELECT email, role FROM users;"
# Cleanup
kill $SERVER_PID 2>/dev/null