<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nimmly</title>
    <description>The latest articles on DEV Community by Nimmly (@nimmly).</description>
    <link>https://dev.to/nimmly</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3978952%2F9444eec7-6ed1-45bf-b500-1eb6987a2c6b.png</url>
      <title>DEV Community: Nimmly</title>
      <link>https://dev.to/nimmly</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nimmly"/>
    <language>en</language>
    <item>
      <title>How I Stopped Waiting for the Backend to Be Ready</title>
      <dc:creator>Nimmly</dc:creator>
      <pubDate>Thu, 11 Jun 2026 07:59:37 +0000</pubDate>
      <link>https://dev.to/nimmly/how-i-stopped-waiting-for-the-backend-to-be-ready-2h7l</link>
      <guid>https://dev.to/nimmly/how-i-stopped-waiting-for-the-backend-to-be-ready-2h7l</guid>
      <description>&lt;p&gt;As a developer, I've run into the same problem countless times.&lt;/p&gt;

&lt;p&gt;The UI is ready, but the backend isn't.&lt;/p&gt;

&lt;p&gt;Maybe the backend team is still working on endpoints.&lt;/p&gt;

&lt;p&gt;Maybe you're building a prototype.&lt;/p&gt;

&lt;p&gt;Maybe you're validating an idea before investing time in a real API.&lt;/p&gt;

&lt;p&gt;Or maybe you have a demo with a client, and you need to show something—even if it's just a mock.&lt;/p&gt;

&lt;p&gt;Whatever the reason, development gets blocked surprisingly often by missing backend functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Usual Options
&lt;/h2&gt;

&lt;p&gt;Most developers end up doing one of these:&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 1: Hardcoded JSON
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;users&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;John Doe&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Jane Smith&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This works for a few hours—or until the next sprint, when you need to rewrite the whole logic so it actually works with a real API.&lt;/p&gt;

&lt;p&gt;Then you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pagination&lt;/li&gt;
&lt;li&gt;Filtering&lt;/li&gt;
&lt;li&gt;Search&lt;/li&gt;
&lt;li&gt;CRUD operations&lt;/li&gt;
&lt;li&gt;Authentication&lt;/li&gt;
&lt;li&gt;Relationships&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And suddenly your fake backend becomes a project of its own.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: JSON Server
&lt;/h3&gt;

&lt;p&gt;JSON Server is great, but eventually I found myself constantly editing JSON files, creating custom routes, and manually managing relationships between resources.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 3: Build the Backend First
&lt;/h3&gt;

&lt;p&gt;This is often the "correct" solution.&lt;/p&gt;

&lt;p&gt;But then again, you can't really demo a backend to a non-technical stakeholder and expect them to be amazed by the work being done.&lt;/p&gt;

&lt;p&gt;It's also the slowest approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Actually Needed
&lt;/h2&gt;

&lt;p&gt;I wanted something that could generate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GET&lt;/strong&gt; endpoints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;POST&lt;/strong&gt; endpoints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PATCH&lt;/strong&gt; endpoints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; endpoints&lt;/li&gt;
&lt;li&gt;Realistic fake data&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pagination&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Filtering&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Relationships&lt;/strong&gt; between resources&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without writing backend code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;

&lt;p&gt;Let's say I'm building a blog application.&lt;/p&gt;

&lt;p&gt;I create two resources:&lt;/p&gt;

&lt;h3&gt;
  
  
  Users
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"avatar"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"image"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Posts
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"userId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"relation"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few seconds later, I have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET    /users
GET    /users/:id
POST   /users
PATCH  /users/:id
DELETE /users/:id

GET    /posts
GET    /posts/:id
POST   /posts
PATCH  /posts/:id
DELETE /posts/:id
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With realistic generated data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;The biggest advantage isn't the fake data.&lt;/p&gt;

&lt;p&gt;It's momentum.&lt;/p&gt;

&lt;p&gt;Frontend development can continue immediately.&lt;/p&gt;

&lt;p&gt;Designers can review flows.&lt;/p&gt;

&lt;p&gt;Stakeholders can click through a working product.&lt;/p&gt;

&lt;p&gt;Mobile apps can integrate against stable endpoints.&lt;/p&gt;

&lt;p&gt;QA can start testing.&lt;/p&gt;

&lt;p&gt;All before a production backend exists.&lt;/p&gt;

&lt;p&gt;And perhaps most importantly: once the real backend is ready, there are usually very few changes needed.&lt;/p&gt;

&lt;p&gt;Maybe a URL swap.&lt;/p&gt;

&lt;p&gt;Maybe adding or removing a header.&lt;/p&gt;

&lt;p&gt;That's it.&lt;/p&gt;

&lt;p&gt;Loading states, error handling, authentication, pagination, filtering, and sorting have already been implemented and tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Features That Became Surprisingly Useful
&lt;/h2&gt;

&lt;p&gt;While building my own projects, I found myself needing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Authentication mocking&lt;/li&gt;
&lt;li&gt;Scenario-based responses&lt;/li&gt;
&lt;li&gt;Resource relationships&lt;/li&gt;
&lt;li&gt;Sorting and filtering&lt;/li&gt;
&lt;li&gt;OpenAPI imports for existing specifications&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These features made the mock API behave much closer to a real production system.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tool I Ended Up Building
&lt;/h2&gt;

&lt;p&gt;After repeatedly solving this problem across different projects, I decided to build my own solution: &lt;strong&gt;RestFaker&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The goal was simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Generate complete REST APIs in minutes so developers can keep building instead of waiting.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It automatically creates CRUD endpoints, generates realistic data, supports relationships between resources, and provides authentication and scenario testing features.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Frontend development shouldn't stop because a backend isn't ready.&lt;/p&gt;

&lt;p&gt;Whether you're building an MVP, testing a new idea, creating demos, or working with a distributed team, having a realistic API available immediately can dramatically speed up development.&lt;/p&gt;

&lt;p&gt;Do you use JSON Server, Mockoon, Postman Mocks, custom Express servers, or something else?&lt;/p&gt;

&lt;h2&gt;
  
  
  If You Wanna Try It Yourself
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://restfaker.dev" rel="noopener noreferrer"&gt;https://restfaker.dev&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>api</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
