Summary
This was a pretty long chapter, but I hope that it wasn’t boring. After having covered more conventional web apps in the previous chapters, we were able to dig in a little deeper here and see what this particular stack had to offer. We created some API endpoints based on MongoDB aggregations and we were able to turn them into visualizations with Chart.js, but you should feel comfortable enough to plug in your visualization solution of choice. We have seen how to leverage SWR- and React-specific fetching strategies in order to make our sites snappy and performant. We have also explored the Background Tasks feature that FastAPI provides and how it can help us perform some time-consuming tasks – we used it to implement a simple email-sending system, while introducing SendGrid, a powerful enterprise-level emailing solution.
In the next chapter, we are going to deploy our analytics application – we will serve FastAPI from a robust Ubuntu server featuring...