Automated Action 84cb69bf10 Rewrite authentication service from FastAPI/Python to Node.js/Express
- Replace FastAPI with Express.js framework
- Replace SQLAlchemy with Sequelize ORM
- Replace Alembic with Sequelize migrations
- Implement bcryptjs for password hashing
- Add JWT authentication with jsonwebtoken
- Create Express routes and controllers
- Add input validation with express-validator
- Implement rate limiting and security headers
- Configure CORS for all origins
- Add environment-based configuration
- Update README with Node.js setup instructions

Environment variables required:
- JWT_SECRET: JWT secret key for token signing
- NODE_ENV: Environment (development/production)
- PORT: Server port (default: 3000)
- JWT_EXPIRES_IN: Token expiration time (default: 24h)
2025-06-27 09:28:13 +00:00

45 lines
1.1 KiB
JSON

{
"name": "user-authentication-service",
"version": "1.0.0",
"description": "A Node.js Express-based user authentication service with JWT and SQLite",
"main": "src/server.js",
"scripts": {
"start": "node src/server.js",
"dev": "nodemon src/server.js",
"migrate": "sequelize-cli db:migrate",
"migrate:undo": "sequelize-cli db:migrate:undo",
"seed": "sequelize-cli db:seed:all",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix"
},
"keywords": [
"nodejs",
"express",
"authentication",
"jwt",
"sqlite",
"sequelize"
],
"author": "BackendIM",
"license": "MIT",
"dependencies": {
"express": "^4.18.2",
"sequelize": "^6.35.2",
"sqlite3": "^5.1.6",
"bcryptjs": "^2.4.3",
"jsonwebtoken": "^9.0.2",
"cors": "^2.8.5",
"helmet": "^7.1.0",
"express-validator": "^7.0.1",
"express-rate-limit": "^7.1.5",
"dotenv": "^16.3.1"
},
"devDependencies": {
"nodemon": "^3.0.2",
"eslint": "^8.55.0",
"sequelize-cli": "^6.6.2"
},
"engines": {
"node": ">=16.0.0"
}
}