mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 22:29:40 +02:00
feat: integrate uload and picture, unify package naming
- 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>
This commit is contained in:
parent
c6c4c5a552
commit
c712a2504a
1031 changed files with 189301 additions and 290 deletions
64
uload/scripts/test-registration.js
Normal file
64
uload/scripts/test-registration.js
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
import PocketBase from 'pocketbase';
|
||||
|
||||
const pb = new PocketBase('http://localhost:8090');
|
||||
|
||||
// Generiere eine zufällige Test-E-Mail
|
||||
const timestamp = Date.now();
|
||||
const testEmail = `test${timestamp}@example.com`;
|
||||
const testPassword = 'TestPassword123!';
|
||||
|
||||
async function testRegistration() {
|
||||
console.log('🔧 Testing Registration and Verification Email...\n');
|
||||
console.log(`📧 Test email: ${testEmail}`);
|
||||
console.log(`🔑 Test password: ${testPassword}\n`);
|
||||
|
||||
try {
|
||||
// 1. Erstelle einen neuen User
|
||||
console.log('1️⃣ Creating new user...');
|
||||
const newUser = await pb.collection('users').create({
|
||||
email: testEmail,
|
||||
password: testPassword,
|
||||
passwordConfirm: testPassword,
|
||||
username: `user${timestamp}`,
|
||||
emailVisibility: true
|
||||
});
|
||||
|
||||
console.log('✅ User created successfully');
|
||||
console.log(' User ID:', newUser.id);
|
||||
console.log(' Verified:', newUser.verified);
|
||||
console.log('');
|
||||
|
||||
// PocketBase sollte automatisch eine Verification-E-Mail senden
|
||||
// wenn SMTP konfiguriert ist
|
||||
|
||||
// 2. Warte kurz
|
||||
console.log('⏳ Waiting 2 seconds...\n');
|
||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||
|
||||
// 3. Versuche manuell eine Verification-E-Mail zu senden
|
||||
console.log('2️⃣ Manually requesting verification email...');
|
||||
try {
|
||||
await pb.collection('users').requestVerification(testEmail);
|
||||
console.log('✅ Manual verification email request sent');
|
||||
console.log(' Check if you received 1 or 2 emails');
|
||||
} catch (error) {
|
||||
console.error('❌ Manual verification failed:', error.message);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('❌ Registration failed:', error);
|
||||
if (error.response) {
|
||||
console.error(' Response:', error.response.data);
|
||||
}
|
||||
}
|
||||
|
||||
console.log('\n📌 Check your email logs/inbox for:');
|
||||
console.log(` - Email to: ${testEmail}`);
|
||||
console.log(' - Should receive verification email(s)');
|
||||
console.log('\n📌 Also check:');
|
||||
console.log(' - PocketBase Admin → Logs');
|
||||
console.log(' - PocketBase Admin → Settings → Mail settings');
|
||||
console.log(' - Application URL is set correctly');
|
||||
}
|
||||
|
||||
// Run test
|
||||
testRegistration();
|
||||
Loading…
Add table
Add a link
Reference in a new issue