Server-Side Rendering and Image Processing with FastAPI and Next.js
We have covered a lot of ground in our FARM-stack exploration so far, but when it comes to building real, modern web applications, there are so many aspects and topics that just listing all of them would take dozens of pages.
In this chapter, I will try to focus on a couple of key topics and essential web development requirements that you are bound to run into, namely: making fast, SEO-performant, server-side, or statically generated pages, and image handling. Where possible, I will try to give concrete and deliberately simplified examples, while outlining different solutions and strategies and emphasizing the strengths specific to the MongoDB, FastAPI, and React frameworks.
In this chapter, we’ll cover, or at least touch on, the following topics:
- Creating a FastAPI endpoint that can accept and process files, namely, images
- Introduction to the Next.js framework and server-side rendering ...