Tailwind, Middleware, and CORS
In this chapter, we will build on the frontend principles we introduced previously by introducing Tailwind CSS, explore how we can consume our backend services via an API from our frontend app, see how we can leverage middleware to transform our JSON requests, and look at how we can provide a secure Single-Page App (SPA) with a user login.
In this chapter, we’ll cover the following topics:
- Creating and designing frontend applications using the Tailwind CSS framework
- Getting an understanding of how to use the Vite CLI to create new Vue applications
- Configuring our Go service for CORS
- Setting up a JavaScript Axios library
- Creating middleware to manage JSON formatting between the frontend and the backend