Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Full Stack FastAPI, React, and MongoDB
  • Table Of Contents Toc
Full Stack FastAPI, React, and MongoDB

Full Stack FastAPI, React, and MongoDB

By : Marko Aleksendrić
3.8 (5)
close
close
Full Stack FastAPI, React, and MongoDB

Full Stack FastAPI, React, and MongoDB

3.8 (5)
By: Marko Aleksendrić

Overview of this book

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.
Table of Contents (17 chapters)
close
close
1
Part 1 – Introduction to the FARM Stack and the Components
6
Part 2 – Parts of the Stack Working Together
10
Part 3 – Deployment and Final Thoughts

Creating our FastAPI backend

I will now begin with the creation of the FastAPI-powered backend. I like to start with a folder that bears the project name, so in this case, I will go with Ch5, as in Chapter 5 , Building the Backend for Our Application. A more natural name would be CarsApp or something similar. Next, I am going to create a folder inside called backend and create a fresh Python environment inside of it. These are the steps:

  1. Create a folder named Ch5, or name it whatever you please.
  2. cd into it and create a folder named backend.
  3. cd into the /backend folder and create a Python environment with the following command:
    python -m venv venv
  4. The command will create a folder called venv. Activate the environment by typing the following command:
    venv\Scripts\activate.bat
  5. The Python environment should be now activated – you should have your command prompt prepended with venv. Now, it is time to install our Python dependencies. While in the same activated...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Full Stack FastAPI, React, and MongoDB
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon