
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
structure-app-nodejs
Advanced tools
Base source for VNLP projects
Respond with error
throw with VError to response with errorLogger
logger.info: when you need to store an information of an actionlogger.error: when you need to log an errorlogger.warn: when you need to log warning, it doesn't affect current flow but can affect system in the futurelogger.debug: when you need to log something make you debug easierCoding convention
Dependencies
service factory instead.Define JSDoc
/** to quickly create jsdocRecommend VSCode extensions
Create new module directory in /modules
Define new route
api.jsverify token, validate request data, ...Define middleware, validation
Joi schema to validate data, you can find guide herevalidate built-in function of express-validation to attach to API like a middlewareDefine new controller
serviceFactoryres.successtryCatchWrapper in constructorDefine new service
/modules/.../servicesService with input are list of dependencies and return a functionDefine new model
collection, schema of model in /modules/.../model.jsDefine new repository
BaseRepositorynpm install to install packagesnpm start to start servernpm run test to run testsnpm run dev to start server with DEBUG level@duysmile or email me duy210697@gmail.comFAQs
Boilerplate for nodejs app
We found that structure-app-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.