A boilerplate for Node.js applications with MySQL, providing an MVC-like structure, basic schema validation, JWT authentication, and common error handling. Version 1.0.7 is the latest, with no regular release cadence. It includes pre-configured packages for email (nodemailer), load testing (artillery), process management (pm2), and password hashing (bcrypt). It is designed for quick starting CRUD APIs with MySQL, but lacks TypeScript support, testing frameworks, and active maintenance.
npm install node-mysql-boilerplateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Clones the boilerplate, installs dependencies, configures MySQL, and starts the server with default endpoints.
Replace mysql with mysql2 in package.json and update connection code.
Use require() syntax for all imports.
Install @types/node, @types/express, and manually declare modules.
Update config/config.js with production database credentials.
Run npm install mysql
Update config/config.js with correct username and password.
Ensure require('jsonwebtoken') is used correctly.