Book Image

Consuming Python APIs with React [Video]

By : Wayne Merry
Book Image

Consuming Python APIs with React [Video]

By: Wayne Merry

Overview of this book

<p><span id="description" class="sugar_field">One of the best things about Python is that it fits well into any web developer's skill set. With the help of Django, Python's high-end web framework, you can rapidly develop your own websites and build web APIs that are clean and easy to maintain and re-write, all while allowing you to integrate your Python code with powerful JavaScript frameworks such as React.js.</span></p> <p><span id="description" class="sugar_field">You will start by quickly setting up your JavaScript tools and Node.js, as well as React.js for a Bookmarking Application project. After that, you will put together your basic frontend code for interacting with your Django backend. You will learn to build and use React components for your application's UI, and work with your React code's data and state to determine how your application behaves. You'll also explore routing and event handling for your application. From there, you will delve into backend interaction details, such as authentication for login. You will learn to consume your Django resources and also create, update, and delete item data.</span></p> <p><span id="description" class="sugar_field">You'll also learn specific tasks such as managing your bookmarks and counting and collecting likes and comments on your bookmarks. By the end of this course, you will have successfully integrated your Python web application's backend with a React.js frontend.</span></p> <p><span id="description" class="sugar_field">The code bundle for this video course is available at - <a style="font-weight: normal;" href="https://github.com/PacktPublishing/Consuming-Python-APIs-with-React" target="_new">https://github.com/PacktPublishing/Consuming-Python-APIs-with-React</a></span></p> <h1><span class="sugar_field">Style and Approach</span></h1> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">This course provides in-depth content balanced with tutorials that put the theory into practice, and focuses on giving you both the understanding and the practical examples that will bring your Python full-stack web development experience full circle, by integrating your Django backend with a React frontend</span></span></p>
Table of Contents (3 chapters)
Chapter 3
Frontend Details and Consuming Your Django RESTful API
Content Locked
Section 6
Custom REST Operations
In this video, we will learn what custom REST operations are and consume our server’s custom operation to add likes to both Bookmarks and Comments. - Review CRUD operations and learn how custom operations fit within this framework. Learn what DRF URL paths for these custom operations are. - Develop our App to make custom operations (add likes) on Bookmarks. - Develop our App to make custom operations (add likes) on Comments.