Node.js is the most popular choice when building the backend for your app, no matter if you prefer a traditional REST API or using it to build something modern like the GraphQL server.
Node.js offers a lot, but to bring to the best you need to know and follow its best practices. If you are wondering where to find them the awesome open-source community is here to help!
This repo is the largest compilation of best Node.js content available online. It contains:
- more than 80 best practices,
- useful style guides
- architectural patterns
As it's maintained by the community the "Node.JS Best Practices" is growing rapidly and new pull requests with fresh Node.js content are being created on a daily basis.
Node.js Best Practices
Follow us on Twitter! @nodepractices
Built and maintained by our Steering Committee and Collaborators
Latest Best Practices and News
🎉Node.js best practices reached 40k stars: Thank you to each and every contributor who helped turning this project into what it is today! We've got lots of plans for the time ahead, as we expand our ever-growing list of Node.js best practices even further.
🚀Two New Best Practices: We've been working hard on two new best practices, a section about using npm ci to preview the dependency state in production environments and another on testing your middlewares in isolation
🐳Node.js + Docker best practices: We've opened a call…
Best practices are divided into 7 groups of which each of them contains numerous good practices gathered from the community:
- Project structure
- Error handling
- Code style
- Testing & Quality
- Going to production
Each good practice contains a TL;DR summary as well well as a link to extended content including:
- detailed information
- code examples
- important quotes from different sources
Awesome, right? Rember to show the repo maintainers some love and leave them a star or contribute if you have some useful Node.js tips!
GraphQL Editor is a tool that would help you build, manage & deploy your GraphQL API much faster thanks to dozens of built-in micro features like mock backend or frontend engine for previewing your GraphQL queries!