chore: add diagnostic and seeding scripts
- Add script to generate bcrypt admin password hash. - Add script to seed sample articles for local development. - Add Kimi/Moonshot API diagnostic scripts (SDK and direct curl).
This commit is contained in:
10
scripts/generate-admin-hash.ts
Normal file
10
scripts/generate-admin-hash.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import bcrypt from 'bcryptjs';
|
||||
|
||||
async function main() {
|
||||
const password = process.argv[2] || 'admin';
|
||||
const hash = await bcrypt.hash(password, 10);
|
||||
console.log(`Password: ${password}`);
|
||||
console.log(`Hash: ${hash}`);
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user