UNPKG

nodly

Version:

Nodly is an interactive CLI for scaffolding modern Node.js/Express.js backend projects with instant setup for databases, mailers, queues, sockets, and more. Skip boilerplate and start building features fast.

30 lines (27 loc) • 802 B
šŸ“ utils/ - Purpose: General-purpose helper functions. - Characteristics: - Pure functions (no side effects). - Reusable across the app. - Examples: - formatDate() - validateEmail() - generateRandomId() šŸ“ lib/ - Purpose: Library wrappers or core logic modules. - Characteristics: - Handles I/O or integrates with external services. - Application-specific logic (e.g., DB, mail). - Examples: - lib/prisma.js (Prisma client) - lib/redis.js (Redis connection) - lib/sendMail.js (Nodemailer wrapper) šŸ“ config/ - Purpose: Centralized application settings. - Characteristics: - Environment/config values. - No logic, just definitions/settings. - Examples: - config/database.js (DB credentials) - config/jwt.js (JWT secret, expiration) - config/app.js (port, app name)