A minimal CLI tool to scaffold a production-ready Express REST API with support for JavaScript or TypeScript, database choices (MongoDB, PostgreSQL, MySQL), optional Jest testing, and an interactive prompt setup. Version 4.6.2 requires Node.js >=22.14.0. It differentiates itself by being zero-configuration, generating a well-structured project with best practices, and offering flexibility in language, database, and testing. The tool is actively maintained and easy to customize post-generation.
npm install express-api-rest-genNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to scaffold a new Express REST API project using the CLI tool via npx.
Update Node.js to 22.14.0+ and npm to 10.9.2+
After generation, update .env with correct database credentials.
Use the latest version to get the current CLI interface.
Run 'npm i -g express-api-rest-gen' or use 'npx express-api-rest-gen'
Update Node.js to 22.14.0 or higher
Manually install the required driver (e.g., 'npm install pg' for PostgreSQL) or use the matching dependencies from package.json.