Technical requirements
To effectively run and understand the code in this chapter, ensure you have the following set up. If you’ve followed Chapter 1, First Steps with FastAPI, you should already have some of these installed:
- Python: Make sure you’ve installed Python version 3.9 or higher on your computer.
- FastAPI: Install FastAPI along with all its dependencies using the
pip install fastapi[all]
command. As we saw in Chapter 1, First Steps with FastAPI, this command also installs Uvicorn, an ASGI server that’s necessary to run your FastAPI application. - Integrated development environment (IDE): A suitable IDE such as VS Code or PyCharm should be installed. These IDEs offer excellent support for Python and FastAPI development, providing features such as syntax highlighting, code completion, and easy debugging.
- MongoDB: For the NoSQL database portions of this chapter, MongoDB needs to be installed on your local machine. Download and install the...