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

Full Stack FastAPI, React, and MongoDB: Build Python web applications with the FARM stack

eBook
€25.99
Paperback
€31.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Full Stack FastAPI, React, and MongoDB

Part 1 – Introduction to the FARM Stack and the Components

In this part, we will cover the basics of MongoDB, FastAPI, and React, explore the difference between other options, and learn how to start with each of the technologies covered.

This part includes the following chapters:

  • Chapter 1, Web Development and the FARM Stack
  • Chapter 2, Setting Up the Document Store with MongoDB
  • Chapter 3, Getting Started with FastAPI
  • Chapter 4, Setting Up a React Workflow
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn how to build web applications without having to know the intricacies of the components
  • Build full stack projects without compromising on development speed and app performance
  • Prepare yourself for the diverse world of web development, analytics, and data visualization

Description

If you need to develop web applications quickly, where do you turn? Enter the FARM stack. The FARM stack combines the power of the Python ecosystem with REST and MongoDB and makes building web applications easy and fast. This book is a fast-paced, concise, and hands-on beginner’s guide that will equip you with the skills you need to quickly build web applications by diving just deep enough into the intricacies of the stack's components. The book quickly introduces each element of the stack and then helps you merge them to build a medium-sized web application. You'll set up a document store with MongoDB, build a simple API with FastAPI, and create an application with React. Security is crucial on the web, so you'll learn about authentication and authorization with JSON Web Tokens. You'll also understand how to optimize images, cache responses with Redis, and add additional features to your application as well as explore tips, tricks, and best practices to make your development experience a breeze. Before you know it, you'll be deploying the application to different platforms. By the end of this book, you will have built a couple of functional applications efficiently and will have the springboard you need to delve into diverse and more specialized domains.

Who is this book for?

This book is for web developers and analysts who want to include the power of a modern asynchronous Python framework, a flexible data store and a powerful UI library with the combination of two of the most important programming languages today in their web development toolkit. Beginners in the field of information presentation will also find this book helpful. You must have a beginner-level understanding of Python, JavaScript, and HTML and CSS to get the most out of this book.

What you will learn

  • Discover the flexibility of the FARM stack
  • Implement complete JWT authentication with FastAPI
  • Explore the various Python drivers for MongoDB
  • Discover the problems that React libraries solve
  • Build simple and medium web applications with the FARM stack
  • Dive into server-side rendering with Next.js
  • Deploy your app with Heroku, Vercel, Ubuntu Server and Netlify
  • Understand how to deploy and cache a FastAPI backend

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 23, 2022
Length: 336 pages
Edition : 1st
Language : English
ISBN-13 : 9781803249445
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : Sep 23, 2022
Length: 336 pages
Edition : 1st
Language : English
ISBN-13 : 9781803249445
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 99.97
Building Python Microservices with FastAPI
€35.99
Building Python Web APIs with FastAPI
€31.99
Full Stack FastAPI, React, and MongoDB
€31.99
Total 99.97 Stars icon

Table of Contents

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

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(6 Ratings)
5 star 50%
4 star 16.7%
3 star 16.7%
2 star 16.7%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Yondela Myataza Jul 29, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Feefo Verified review Feefo
Amazon Customer Oct 28, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Full stack clearly explained, not just code but a proper explanation of the choice of each tool.
Amazon Verified review Amazon
RUI WANG Sep 30, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I love how this book covers both frontend and backend of the application. The author walks you step by step on how to work in MongoDB, so I rarely confused because of the detailed and clear writing. This was my first time reading a coding book and I had a great experience! Very new learner friendly.
Amazon Verified review Amazon
Luiz Eduardo Fonseca Oct 24, 2022
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
In this book the author talks about the so-called FARM stack for Web Development. The book goes into detail on how to set environments, MongoDB and friends, CRUD operations, and REST API. Then it shows how to build the backend and frontend and how to tie it all together using authentication. Overall very enjoyable book.
Amazon Verified review Amazon
Tim McKay Dec 19, 2023
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
This book was released in August 2022.I worked through it in December 2023.Many of the Python packages used in this book were very out of date, and introduced numerous breaking changes.For instance, Pydandic V2 has several breaking changes from V1 from the book. I had to spend a lot of time and frustration patching the code with snippits online just to get the book examples to run. Chapter 5 is where things really started to fall down.I did learn a lot in this book. In particular, how the requirements.txt works. I wish the book (or GitHub repo for the book) would of included a frozen versioned requirements.txt so that there would have been more success in learning the FastAPI and MongoDB stack, and not wasting time troubleshooting my environments.On top of that, there were NUMEROUS errors in the text of the book. References to code was done haphazardly. Like numerous references to a cars/models.py file, when it was actually models/cars.py.Often long code snippits were broken into pieces so the author could break in to explain. None of the snippits were labelled, so sometimes it was unclear if a new snippit was a continuation or an entirely new .py file.Fundamentally, the book definately delivered on conveying the core essentials of a React, Python/FastAPI, MongoDB application stack. I learned a LOT. I went into this wanting to learn more about the backend side than the front end (I want to use this stack for Flutter mobile app development). Hands down, this author earned big points from me for being aligned perfectly in that regard.Overall, amazing exposure to many core and side topics (redis, machine learning [though, didnt work]). I have a foundation and a working code base that I can start from in order to move my learning forward. I just wish this wasn't my most frustrating technical book experience of the past 20 years. I feel that Frodo had an easier time getting the ring to Mordor.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.