<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Install Json Server for API Testing]]></title><description><![CDATA[Install Json Server for API Testing]]></description><link>https://install-json-server-for-api-testing.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 13:29:45 GMT</lastBuildDate><atom:link href="https://install-json-server-for-api-testing.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Install JSON Server and make API]]></title><description><![CDATA[Here are the topics that we’re going to cover in this article-

Install JSON server.

Make db file and a simple file.


Let’s get started-

Install JSON server- Run command in your command prompt to install json server- npm install -g json-server

No...]]></description><link>https://install-json-server-for-api-testing.hashnode.dev/install-json-server-and-make-api</link><guid isPermaLink="true">https://install-json-server-for-api-testing.hashnode.dev/install-json-server-and-make-api</guid><category><![CDATA[React Native]]></category><dc:creator><![CDATA[Rashi Goel]]></dc:creator><pubDate>Thu, 03 Apr 2025 08:20:03 GMT</pubDate><content:encoded><![CDATA[<p>Here are the topics that we’re going to cover in this article-</p>
<ol>
<li><p>Install JSON server.</p>
</li>
<li><p>Make db file and a simple file.</p>
</li>
</ol>
<p>Let’s get started-</p>
<ol>
<li><p><strong>Install JSON server-</strong> Run command in your command prompt to install json server- <strong>npm install -g json-server</strong></p>
</li>
<li><p>Now create a folder with any name for ex- <strong>API</strong> and open it in VScode. Now, create a file with name <strong>db.json.</strong></p>
</li>
</ol>
<p>Run the json server using command— <strong>json-server --watch db.json</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743667943672/d738385a-3421-4cb0-838c-a3f03c68ed48.png" alt class="image--center mx-auto" /></p>
<p>You can verify your path if running correctly - run localhost:3000 in your browser as-</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743668043076/f26fd259-d64b-4d34-aaba-5957f784eb75.png" alt class="image--center mx-auto" /></p>
<p>Now, you can create your data in your db.json file to display data on created API url.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743668141557/e17bb935-ad76-4941-bd03-33af5f3831a5.png" alt class="image--center mx-auto" /></p>
<p>This is how we can install JSON server and create our API for testing purpose. To know more about how to use json server with your system IP. Please check the article- <a target="_blank" href="https://install-json-server-for-api-testing.hashnode.dev/json-server-api-with-react-native">https://install-json-server-for-api-testing.hashnode.dev/json-server-api-with-react-native</a></p>
<p><strong>Thankyou !!</strong></p>
]]></content:encoded></item><item><title><![CDATA[Json Server API with React Native]]></title><description><![CDATA[Hi Everyone, Hope you’re doing well. In this article we’re excited to share how you can create your own API for testing purpose and to run json server using your own system’s IP address.
Let’s get started!
Firstly, check your system local IP address ...]]></description><link>https://install-json-server-for-api-testing.hashnode.dev/json-server-api-with-react-native</link><guid isPermaLink="true">https://install-json-server-for-api-testing.hashnode.dev/json-server-api-with-react-native</guid><category><![CDATA[React Native]]></category><dc:creator><![CDATA[Rashi Goel]]></dc:creator><pubDate>Thu, 03 Apr 2025 08:17:36 GMT</pubDate><content:encoded><![CDATA[<p>Hi Everyone, Hope you’re doing well. In this article we’re excited to share how you can create your own API for testing purpose and to run json server using your own system’s IP address.</p>
<p>Let’s get started!</p>
<p>Firstly, check your system local IP address type <strong>ipconfig</strong> in your command prompt.</p>
<p>You’ll get the ip address of your system-</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1743666608978/632d7c9a-6c03-4013-ad6e-9bd0d5e68272.png" alt class="image--center mx-auto" /></p>
<p>Now, go to your json server folder for ex: **API (which is having api data.) folder open it in command prompt and run below command-</p>
<p><strong>json-server —host 0.0.0.0 db.json</strong></p>
<p>Now, open your systemIP address in your browser and it will run successfully.</p>
<p><strong>systemipaddress/users</strong></p>
<p>for ex- 192.168.1.3:3000/users</p>
<p>your API data will get displayed. Same API url you can use for testing API and to use in your project.</p>
<p>That’s all !!</p>
<p><strong>Thank you for reading this blog. If you found it helpful, please consider sharing it and giving it a like.</strong></p>
]]></content:encoded></item></channel></rss>