Complete documentation for the Node.js Starter Kit project.
- Main README - Project overview, quick start, and setup
- API Documentation - Interactive Swagger/OpenAPI docs (when server is running)
-
TESTING.md - Complete testing guide
- Test types (unit, integration)
- Running tests
- Writing new tests
- Test data management
- Coverage reports
-
TEST_DATA_CLEANUP.md - Test data management ✨ NEW
CLEAN_TEST_DATAenvironment variable- Smart cleanup logic
- Debugging with preserved data
- Best practices and troubleshooting
-
INTEGRATION_TEST_AUTH.md - Authentication setup
- Shared authentication token
- Token management
- Setup configuration
-
TESTING_CHEATSHEET.md - Quick reference
- Common test commands
- Test structure patterns
- Quick troubleshooting
- BENCHMARKING.md - Performance monitoring
- Performance middleware
- Benchmark logging
- Log file locations
- Analyzing performance data
- CODE_GENERATION.md - Automated code generation
- Module generator usage
- Template structure
- Generated file overview
- Customization guide
- API_STANDARDS.md - RESTful API standards
- HTTP methods and status codes
- Request/response formats
- Error handling
- Pagination
- ARCHITECTURE.md - System architecture
- Project structure
- Design patterns
- Dependencies
- Technology stack
# All tests with coverage
npm test
# Unit tests only
npm run test:unit
# Integration tests only
npm run test:integration
# Keep test data for debugging
CLEAN_TEST_DATA=false npm test📖 See: TESTING.md | TEST_DATA_CLEANUP.md
# Generate complete module (model, controller, service, routes, tests)
npm run generate
# Follow the interactive prompts📖 See: CODE_GENERATION.md
# Start server (performance logging automatic)
npm run dev
# Check benchmark logs
cat logs/benchmark/benchmark-YYYY-MM-DD.log📖 See: BENCHMARKING.md
# View Swagger docs
npm run dev
# Open http://localhost:3000/api-docs📖 See: API_STANDARDS.md
# Keep test data in database
CLEAN_TEST_DATA=false npm test
# Inspect database
npx prisma studio
# Re-enable cleanup when done
CLEAN_TEST_DATA=true npm test📖 See: TEST_DATA_CLEANUP.md | TESTING_CHEATSHEET.md
| Document | Status | Last Updated |
|---|---|---|
| Main README | ✅ Complete | Latest |
| TESTING.md | ✅ Complete | Latest |
| TEST_DATA_CLEANUP.md | ✅ Complete | Latest |
| INTEGRATION_TEST_AUTH.md | ✅ Complete | Latest |
| TESTING_CHEATSHEET.md | ✅ Complete | Latest |
| BENCHMARKING.md | ✅ Complete | Latest |
| CODE_GENERATION.md | ✅ Complete | Latest |
| API_STANDARDS.md | ✅ Complete | Latest |
| ARCHITECTURE.md | - |
When adding new features or making changes:
- Update relevant docs - Keep documentation in sync with code
- Add examples - Show real-world usage
- Update this index - Add new documents to the table
- Test instructions - Verify all commands work as documented
- Cross-reference - Link related documents
- Start with Main README for project overview
- Read ARCHITECTURE.md to understand structure
- Follow API_STANDARDS.md for API conventions
- Review TESTING.md for testing practices
- Read CODE_GENERATION.md to create new modules
- Understand TEST_DATA_CLEANUP.md for testing
- Follow TESTING_CHEATSHEET.md for quick reference
- Check BENCHMARKING.md for performance monitoring
- Review Main README for deployment
- Check BENCHMARKING.md for monitoring
- Understand log locations and formats
- 🔍 Use Ctrl+F to search within documents
- 📌 Bookmark frequently used pages
- 🔄 Docs are versioned with code - always check latest
- 💬 Ask questions if anything is unclear
- ✨ Contribute improvements via pull requests
Current test coverage:
- Statements: ~80%
- Branches: ~56%
- Functions: ~75%
- Lines: ~80%
Run npm test to see detailed coverage report.
Last Updated: 2026 Project Version: 1.0.0 Node Version: 20.x Package Manager: npm
For issues or questions, check existing documentation first, then create an issue in the project repository.