<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Create A Website or API with Flask and MongoDB	</title>
	<atom:link href="https://fishertechsolutions.com/create-a-website-or-api-with-flask-and-mongodb/feed/" rel="self" type="application/rss+xml" />
	<link>https://fishertechsolutions.com/create-a-website-or-api-with-flask-and-mongodb/</link>
	<description>Bringing Your Small Business Into the Digital Age</description>
	<lastBuildDate>Sat, 07 Mar 2026 20:21:11 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: DJ Stelmach		</title>
		<link>https://fishertechsolutions.com/create-a-website-or-api-with-flask-and-mongodb/#comment-450</link>

		<dc:creator><![CDATA[DJ Stelmach]]></dc:creator>
		<pubDate>Tue, 25 Jan 2022 15:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://fishertechsolutions.com/?p=1361#comment-450</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://fishertechsolutions.com/create-a-website-or-api-with-flask-and-mongodb/#comment-448&quot;&gt;Rishi Mitra&lt;/a&gt;.

Thank you for reading!
I&#039;m not very familiar with React as I am an Angular developer, but I&#039;ll try to help as much as I can.
There are a few ways you get make calls to your API with React. The bog-standard way is to use the built in &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;Fetch API&lt;/a&gt;. This is simple and doesn&#039;t require any external NPM packages.
Another way, which seems to become the standard for React, is to use &lt;a href=&quot;https://axios-http.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;axios&lt;/a&gt;. This is similar to fetch, but reduces the amount of code you need to write and is more readable.
You can also use async/await with fetch and axios.
&lt;a href=&quot;https://www.freecodecamp.org/news/fetch-data-react/&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;Here&#039;s a good breakdown with code examples of how to use it with react.&lt;/a&gt;

Recently, I&#039;ve switched from Flask to FastAPI. I made another post &lt;a href=&quot;http://fishertechsolutions.com/getting-started-with-fastapi-and-more/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. With FastAPI, you get more speed and native typing to enforce better security. Everything covered in this post translates well to FastAPI. For example, the mongoengine portion is exactly the same, and the function body itself is nearly identical. The only real difference with the declarations, especially with POST. FastAPI doesn&#039;t use classes to organize it&#039;s routes, so it will be a little different. Just remember that some packages imported in this post don&#039;t work with FastAPI, such as &lt;code&gt;flask-bcrypt&lt;/code&gt;, but generic packages exist, as they are just wrappers for Flask. As a final point, the JWT authentication doesn&#039;t translate over, but in my &lt;a href=&quot;https://github.com/dman926/SEPHIRA/tree/main/SEPHIRA/FastAPI&quot; rel=&quot;nofollow ugc&quot;&gt;SEPHIRA project&lt;/a&gt;, I made a custom module for JWT authentication that works almost the exact same way.

Feel free to respond if you have any more questions.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://fishertechsolutions.com/create-a-website-or-api-with-flask-and-mongodb/#comment-448">Rishi Mitra</a>.</p>
<p>Thank you for reading!<br />
I&#8217;m not very familiar with React as I am an Angular developer, but I&#8217;ll try to help as much as I can.<br />
There are a few ways you get make calls to your API with React. The bog-standard way is to use the built in <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch" target="_blank" rel="noopener nofollow ugc">Fetch API</a>. This is simple and doesn&#8217;t require any external NPM packages.<br />
Another way, which seems to become the standard for React, is to use <a href="https://axios-http.com/" target="_blank" rel="noopener nofollow ugc">axios</a>. This is similar to fetch, but reduces the amount of code you need to write and is more readable.<br />
You can also use async/await with fetch and axios.<br />
<a href="https://www.freecodecamp.org/news/fetch-data-react/" target="_blank" rel="noopener nofollow ugc">Here&#8217;s a good breakdown with code examples of how to use it with react.</a></p>
<p>Recently, I&#8217;ve switched from Flask to FastAPI. I made another post <a href="http://fishertechsolutions.com/getting-started-with-fastapi-and-more/" rel="noopener" target="_blank">here</a>. With FastAPI, you get more speed and native typing to enforce better security. Everything covered in this post translates well to FastAPI. For example, the mongoengine portion is exactly the same, and the function body itself is nearly identical. The only real difference with the declarations, especially with POST. FastAPI doesn&#8217;t use classes to organize it&#8217;s routes, so it will be a little different. Just remember that some packages imported in this post don&#8217;t work with FastAPI, such as <code>flask-bcrypt</code>, but generic packages exist, as they are just wrappers for Flask. As a final point, the JWT authentication doesn&#8217;t translate over, but in my <a href="https://github.com/dman926/SEPHIRA/tree/main/SEPHIRA/FastAPI" rel="nofollow ugc">SEPHIRA project</a>, I made a custom module for JWT authentication that works almost the exact same way.</p>
<p>Feel free to respond if you have any more questions.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rishi Mitra		</title>
		<link>https://fishertechsolutions.com/create-a-website-or-api-with-flask-and-mongodb/#comment-448</link>

		<dc:creator><![CDATA[Rishi Mitra]]></dc:creator>
		<pubDate>Tue, 25 Jan 2022 11:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://fishertechsolutions.com/?p=1361#comment-448</guid>

					<description><![CDATA[Hi,

 This is my first time building an api using Flask (or anything else) and was wondering if you could help me connect the api developed here to my React frontend.

Any resources that you could point me towards would help too!

I&#039;d be super grateful for any help you could provide.

Thanks!!
Rishi.]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p> This is my first time building an api using Flask (or anything else) and was wondering if you could help me connect the api developed here to my React frontend.</p>
<p>Any resources that you could point me towards would help too!</p>
<p>I&#8217;d be super grateful for any help you could provide.</p>
<p>Thanks!!<br />
Rishi.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
