Full Stack FastAPI, React, and MongoDB: Build Python web applications with the FARM stack
by Marko Aleksendric(Author)
Publisher finelybook 出版社: Packt Publishing (September 23, 2022)
Language 语言: English
Print Length 页数: 336 pages
ISBN-10: 1803231823
ISBN-13: 9781803231822
Book Description
Wield the power of Python, React, and MongoDB to build web and data applications quickly and broaden your web development horizons
Key Features
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
Book 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.
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
Who this book is 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.
Table of Contents
Web Development and the FARM Stack
Setting Up the Document Store with MongoDB
Getting Started with FastAPI
Setting Up a React Workflow
Building the Backend for Our Application
Building the Frontend of the Application
Authentication and Authorization
Server-Side Rendering and Image Processing with FastAPI and Next.js
Building a Data Visualization App with the FARM Stack
Caching with Redis and Deployment on Ubuntu (DigitalOcean) and Netlify
Useful Resources and Project Ideas