• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Node.js Design Patterns: What are the must know node js patterns?

 
Greenhorn
Posts: 6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I'm a beginner DevOps engineer. I work on nodejs for side projects. what are the some must known node patterns for API and security?
 
Author
Posts: 9
jQuery Python TypeScript
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Akash Rajvanshi wrote:Hello, I'm a beginner DevOps engineer. I work on nodejs for side projects. what are the some must known node patterns for API and security?



Hello Akash,
Really great question!

I am not sure it makes sense to talk about particular "code" patterns when it comes to API and security. But,  in the context of Node.js, I would recommend to get familiar with the following resources:

 - A good web framework (my favourite is Fastify https://www.fastify.io, but there is plenty of choice)
 - Libraries for managing user authentication and various authentication protocols (Passport.js http://www.passportjs.org is probably the most famous, but Fastify has also plenty of official or community-driven plugins)
 - Libraries for writing your API documentation (OpenAPI/Swagger). Most frameworks offer some kind of support to this, natively or through plugins
 - Input validation libraries (have a look at https://github.com/ajv-validator/ajv for instance)

Let me know if this helps
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic