Categories
Node.js

Are you using promises and async / await safely in Node.js?

5 min read Jump links Support for async code in Node.js What does framework “native support” for async code look like? What happens when a framework doesn’t natively support async code? Which Node.js frameworks natively support async code? How to write async code safely in Node.js Build new projects with a framework which natively supports it Migrate existing […]

Categories
Learning Fastify Node.js Videos

Learning Fastify – Part 4: Create a proxy server for API authentication

< 1 min read Links

Categories
API Essentials Fastify Node.js

How to securely call an authenticated API from your front end

5 min read Jump links Request flow with a proxy server Create a server with Fastify Add and configure the fastify-http-proxy plugin Add an API key to proxied requests HTTP request header URL query string Conclusion

Categories
ECMAScript modules Node.js

What you need to know about ES modules in Node.js

7 min read Jump links Several names for the same thing Which versions of Node.js have full support for ES modules? Why are ECMAScript modules marked as ‘Experimental’ in the Node.js documentation? ES and CommonJS modules play nice together (mostly) Use ES modules when you start a new Node.js project It’s probably not worth migrating your existing Node.js […]

Categories
Learning Fastify Node.js Videos

Trying out HTTP Toolkit with fastify-http-proxy

< 1 min read Links