Summery
Node.js is a JavaScript runtime built on Chrome’s V8 engine. It is commonly used to build web servers, APIs, and backend applications. It often runs behind Nginx, which forwards incoming HTTP requests to the application
Important files and directories
package.json - Project metadata, dependencies, and scripts
package-lock.json - Locked dependency versions
node_modules/ - Installed dependencies
.env - May contain credentials, API keys, and configuration
server.js - Common application entry point
app.js - Common application entry point
routes/ - Application route handlers
middleware/ - Request processing and authentication logic
References
Handy tools:
npm audit - Dependency vulnerability checks
Retire.js - Detect vulnerable JavaScript libraries
Node.js documentation
OWASP Node.js Security Cheat Sheet