Initial commit: Complete NodeJS-native setup

- Migrated from Python pre-commit to NodeJS-native solution
- Reorganized documentation structure
- Set up Husky + lint-staged for efficient pre-commit hooks
- Fixed Dockerfile healthcheck issue
- Added comprehensive documentation index
This commit is contained in:
William Valentin
2025-09-06 01:42:48 -07:00
commit e48adbcb00
159 changed files with 24405 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
// Simple test script to verify admin login functionality
// Run this in the browser console to test admin credentials
async function testAdminLogin() {
console.log('🧪 Testing admin login...');
// Import the services (this won't work directly, but helps us understand the flow)
console.log('Admin credentials:');
console.log('Email: admin@localhost');
console.log('Password: admin123!');
// Check if admin user exists in localStorage
const users = JSON.parse(localStorage.getItem('users') || '[]');
console.log('All users in localStorage:', users);
const adminUser = users.find(u => u.email === 'admin@localhost');
console.log('Admin user found:', adminUser);
if (adminUser) {
console.log('Admin user details:');
console.log('- Email:', adminUser.email);
console.log('- Password:', adminUser.password);
console.log('- Role:', adminUser.role);
console.log('- Status:', adminUser.status);
console.log('- Email Verified:', adminUser.emailVerified);
} else {
console.log('❌ Admin user not found in localStorage');
}
}
// Instructions
console.log('Copy and paste this function in browser console:');
console.log(testAdminLogin.toString());
console.log('Then run: testAdminLogin()');