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 TL;DR 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 […]

Categories
Learning Fastify Node.js Videos

Trying out HTTP Toolkit with fastify-http-proxy

< 1 min read Links

Categories
Express Node.js

Send awesome structured error responses with Express

9 min read Jump links Introducing the ‘Problem Details for HTTP APIs’ specification Problem types and Problem details objects Example problem details response More details, clearer problems Breakdown of a problem details object How to send problem details responses with Express Define problem types and map them to JavaScript error classes Look up the problem details for an […]