mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 18:41:24 +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
48
uload/scripts/test-local-redis.mjs
Normal file
48
uload/scripts/test-local-redis.mjs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import Redis from 'ioredis';
|
||||
|
||||
console.log('🔍 Testing Local Redis Connection\n');
|
||||
console.log('==================================\n');
|
||||
|
||||
// Local Redis configuration
|
||||
const redis = new Redis({
|
||||
host: 'localhost',
|
||||
port: 6379,
|
||||
// No password for local Redis
|
||||
});
|
||||
|
||||
async function testConnection() {
|
||||
try {
|
||||
// Test ping
|
||||
const pong = await redis.ping();
|
||||
console.log('✅ Redis is running locally!');
|
||||
console.log(` Response: ${pong}`);
|
||||
|
||||
// Test set/get
|
||||
await redis.set('test:local', 'Hello from local Redis!');
|
||||
const value = await redis.get('test:local');
|
||||
console.log(` Test value: ${value}`);
|
||||
|
||||
// Clean up
|
||||
await redis.del('test:local');
|
||||
|
||||
console.log('\n✅ All tests passed! Local Redis is working.');
|
||||
console.log('\n📝 Next steps:');
|
||||
console.log(' 1. Run "npm run dev" to start the app');
|
||||
console.log(' 2. Visit a short link');
|
||||
console.log(' 3. Check console for "Redis: Connected successfully"');
|
||||
console.log(' 4. Refresh the link - should be faster (cache hit)');
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Redis connection failed:', error.message);
|
||||
console.log('\nTroubleshooting:');
|
||||
console.log(' 1. Check if Redis is running: brew services list');
|
||||
console.log(' 2. Start Redis: brew services start redis');
|
||||
console.log(' 3. Test connection: redis-cli ping');
|
||||
} finally {
|
||||
redis.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
testConnection();
|
||||
Loading…
Add table
Add a link
Reference in a new issue