• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic