mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 00:01:10 +02:00
- Add uload project with apps/web structure
- Reorganize from flat to monorepo structure
- Remove PocketBase binary and local data
- Update to pnpm and @uload/web namespace
- Add picture project to monorepo
- Remove embedded git repository
- Unify all package names to @{project}/{app} schema:
- @maerchenzauber/* (was @storyteller/*)
- @manacore/* (was manacore-*, manacore)
- @manadeck/* (was web, backend, manadeck)
- @memoro/* (was memoro-web, landing, memoro)
- @picture/* (already unified)
- @uload/web
- Add convenient dev scripts for all apps:
- pnpm dev:{project}:web
- pnpm dev:{project}:landing
- pnpm dev:{project}:mobile
- pnpm dev:{project}:backend
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
1.9 KiB
JavaScript
54 lines
1.9 KiB
JavaScript
import PocketBase from 'pocketbase';
|
||
|
||
const pb = new PocketBase('http://localhost:8090');
|
||
|
||
// Test email - ersetze mit deiner E-Mail
|
||
const testEmail = 'test@example.com'; // HIER DEINE EMAIL EINGEBEN!
|
||
|
||
async function testEmailFunctions() {
|
||
console.log('🔧 Testing PocketBase Email Functions...\n');
|
||
|
||
try {
|
||
// 1. Test Password Reset
|
||
console.log('1️⃣ Testing Password Reset Email...');
|
||
try {
|
||
await pb.collection('users').requestPasswordReset(testEmail);
|
||
console.log('✅ Password reset email request sent successfully');
|
||
console.log(' Check your inbox for the password reset email\n');
|
||
} catch (error) {
|
||
console.error('❌ Password reset failed:', error.message);
|
||
console.log(' Error details:', error.response?.data || error);
|
||
}
|
||
|
||
// 2. Test Verification Email (needs existing unverified user)
|
||
console.log('2️⃣ Testing Verification Email...');
|
||
try {
|
||
await pb.collection('users').requestVerification(testEmail);
|
||
console.log('✅ Verification email request sent successfully');
|
||
console.log(' Check your inbox for the verification email\n');
|
||
} catch (error) {
|
||
console.error('❌ Verification email failed:', error.message);
|
||
console.log(' Error details:', error.response?.data || error);
|
||
}
|
||
|
||
// 3. Check PocketBase health
|
||
console.log('3️⃣ Checking PocketBase health...');
|
||
try {
|
||
const health = await pb.health.check();
|
||
console.log('✅ PocketBase is healthy:', health);
|
||
} catch (error) {
|
||
console.error('❌ PocketBase health check failed:', error.message);
|
||
}
|
||
} catch (error) {
|
||
console.error('❌ General error:', error);
|
||
}
|
||
|
||
console.log('\n📌 Important checks:');
|
||
console.log('1. Is PocketBase running? (http://localhost:8090)');
|
||
console.log('2. Are SMTP settings configured in PocketBase?');
|
||
console.log('3. Is the Application URL set in PocketBase settings?');
|
||
console.log('4. Check PocketBase logs: Admin → Logs');
|
||
}
|
||
|
||
// Run tests
|
||
testEmailFunctions();
|