CoreUI ONE — 250+ PRO components and 25+ admin templates for React, Angular, Vue, Bootstrap and Next.js, plus Data Grid, Scheduler, 4,300+ PRO icons and the Next.js boilerplate. One license. → See what you get

How to use axios in Node.js

Making HTTP requests in Node.js applications often requires more features than the native fetch API provides, such as automatic JSON transformation, request cancellation, and interceptors. As the creator of CoreUI, a widely used open-source UI library, I’ve used axios in countless production backends and services. The most powerful and flexible approach is to use axios, a promise-based HTTP client that provides a rich feature set with a clean API. This method offers automatic JSON parsing, request and response interceptors, and built-in support for timeouts and error handling.

Read More…

How to use fetch in Node.js

Making HTTP requests in Node.js has traditionally required third-party libraries, but starting with Node.js 18, the native fetch API is available without any dependencies. As the creator of CoreUI, a widely used open-source UI library, I’ve implemented countless API integrations in production environments. The most modern and efficient approach is to use the native fetch API, which brings the same familiar browser API to the server side. This method eliminates external dependencies while providing a clean, promise-based interface for HTTP requests.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.