/admin and with working with db. data is pulling from db

This commit is contained in:
2025-06-30 20:26:00 -04:00
parent 5c046874a8
commit b478d9797d
33 changed files with 1214 additions and 58 deletions

12
hash-password.js Normal file
View File

@@ -0,0 +1,12 @@
const bcrypt = require('bcryptjs');
const password = process.argv[2];
if (!password) {
console.error('Usage: node hash-password.js <password>');
process.exit(1);
}
bcrypt.hash(password, 10, (err, hash) => {
if (err) throw err;
console.log('Hashed password:', hash);
});