mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 00:01:10 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
1 KiB
JavaScript
35 lines
1 KiB
JavaScript
import PocketBase from 'pocketbase';
|
|
|
|
const pb = new PocketBase('http://localhost:8090');
|
|
|
|
console.log('Testing PocketBase connection...');
|
|
|
|
try {
|
|
// Test health endpoint
|
|
const health = await fetch('http://localhost:8090/api/health');
|
|
const healthData = await health.json();
|
|
console.log('Health check:', healthData);
|
|
|
|
// Try to create a test user
|
|
const testUser = await pb.collection('users').create({
|
|
email: `test${Date.now()}@example.com`,
|
|
password: 'testpassword123',
|
|
passwordConfirm: 'testpassword123',
|
|
username: `testuser${Date.now()}`,
|
|
name: 'Test User',
|
|
emailVisibility: true,
|
|
});
|
|
|
|
console.log('✅ User created successfully:', testUser.id);
|
|
console.log('Username:', testUser.username);
|
|
console.log('Email:', testUser.email);
|
|
|
|
// Clean up - delete test user
|
|
await pb.collection('users').delete(testUser.id);
|
|
console.log('✅ Test user deleted');
|
|
} catch (error) {
|
|
console.error('❌ Error:', error.message);
|
|
if (error.data) {
|
|
console.error('Error details:', JSON.stringify(error.data, null, 2));
|
|
}
|
|
}
|