Summary
In this chapter, we learned how to serve HTML templates with the Gin framework and how to create reusable templates and serve static assets. We covered how to implement a SPA with the React framework to consume a Gin RESTful API and how to resolve CORS issues with Gin.
We have also explored how Auth0 allows you to quickly add authentication to your React application. Finally, we learned how to build a self-contained web application by embedding the application assets during build time.
In the next chapter, we will explore tips and best practices to architect a scalable, distributed web application with Gin.