Json Server API with React Native
Looking for new opportunities in mobile app development and trying to enhance my skills in same field.
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 type ipconfig in your command prompt.
You’ll get the ip address of your system-

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-
json-server —host 0.0.0.0 db.json
Now, open your systemIP address in your browser and it will run successfully.
systemipaddress/users
for ex- 192.168.1.3:3000/users
your API data will get displayed. Same API url you can use for testing API and to use in your project.
That’s all !!
Thank you for reading this blog. If you found it helpful, please consider sharing it and giving it a like.