- Installed jsonwebtoken and bcryptjs dependencies - Created /api/auth/login endpoint in server.js for credential validation and token generation - Added setup-db.js script to dynamically initialize admin_users table with default account
34 lines
721 B
JSON
34 lines
721 B
JSON
{
|
|
"name": "events-api",
|
|
"version": "1.0.0",
|
|
"description": "Node.js API for events management with MySQL and file upload",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"dev": "nodemon server.js",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"keywords": [
|
|
"nodejs",
|
|
"express",
|
|
"mysql",
|
|
"multer",
|
|
"api",
|
|
"crud"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"bcryptjs": "^3.0.3",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.3.1",
|
|
"express": "^4.18.2",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"multer": "^1.4.5-lts.1",
|
|
"mysql2": "^3.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"nodemon": "^3.0.1"
|
|
}
|
|
}
|