Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Full Stack FastAPI, React, and MongoDB

You're reading from   Full Stack FastAPI, React, and MongoDB Build Python web applications with the FARM stack

Arrow left icon
Product type Paperback
Published in Sep 2022
Publisher Packt
ISBN-13 9781803231822
Length 336 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Marko Aleksendrić Marko Aleksendrić
Author Profile Icon Marko Aleksendrić
Marko Aleksendrić
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Part 1 – Introduction to the FARM Stack and the Components FREE CHAPTER
2. Chapter 1: Web Development and the FARM Stack 3. Chapter 2: Setting Up the Document Store with MongoDB 4. Chapter 3: Getting Started with FastAPI 5. Chapter 4: Setting Up a React Workflow 6. Part 2 – Parts of the Stack Working Together
7. Chapter 5: Building the Backend for Our Application 8. Chapter 6: Building the Frontend of the Application 9. Chapter 7: Authentication and Authorization 10. Part 3 – Deployment and Final Thoughts
11. Chapter 8: Server-Side Rendering and Image Processing with FastAPI and Next.js 12. Chapter 9: Building a Data Visualization App with the FARM Stack 13. Chapter 10: Caching with Redis and Deployment on Ubuntu (DigitalOcean) and Netlify 14. Chapter 11: Useful Resources and Project Ideas 15. Index 16. Other Books You May Enjoy

Getting Started with FastAPI

Arguably the most important part of our FARM stack is going to be the application programming interface (API). The API is the brain of our system – it implements the business logic (how the data flows in and out of the system, but more importantly how it relates to the business requirements inside our system).

I believe that frameworks such as FastAPI are much easier to showcase through simple examples. So, in this chapter, we will go through some simple endpoints that are minimal self-contained REST APIs. We will use them to get acquainted with how this powerful framework handles requests and responses – the cardiovascular system of the web.

This chapter is meant to be a quick start introduction to the framework – here we will focus on standard REST API practices and how they are implemented in FastAPI. I will show how to send requests and modify them according to our needs, and I will explain how to retrieve all the data from...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime