With Nuxt.js you have the abality to run code on the server side and the client side. But that begs the question, how do you do that? We know that Nuxt.js has a built in node server, and it helps render your HTML/CSS on the initial render. However, can you use that node server to run your own code?

There are three different ways to run server-side code with Nuxt. You have serverMiddleware, middleware and asyncData. In this video we discuss the differences between the three.