Yeah, I know there's tons of Node starter templates out there, but I still need one for me. If I'm using bare Express for my app (and not using NestJS), this is what I'd usually start with. Also it was copied from an existing project that I did some time ago, so a lot of times I have to add/remove stuff depending on the project I'm working on.
This is a Node starter template for bare Express applications, drawing a lot of patterns from Node best practices and some OWASP Node recommendations. It comes with a good level of setup for:
- Authentication (with Passport).
- Logging Setup (with Pino).
- Error Handling (with graceful shutdown).
- Testing (with Jest and Supertest).
- API documentation (with Swagger).
- Data Validation (using AJV).
- Configuration, File Uploads, TypeORM setup etc.
This template is definitely missing a lot of things, so if you ever come across it and find it interesting, feel free to make changes however you like. You can also make a PR to improve this one if you have some time - I'd love that very much.