
Stop Mocking Manually — Generate a Full Fake API in Seconds
If you’ve ever built a frontend and thought: “I just need a quick API… why am I writing a whole backend?” I hit that problem one too many times. So I built data-server — a tool that lets you spin up a fully working fake REST API in seconds from a JSON or CSV file. ⚡ What it actually does Give it a file like this: { "todos" : [ { "id" : 1 , "title" : "Write docs" , "done" : false }, { "id" : 2 , "title" : "Ship feature" , "done" : false } ] } Run: mock-data-server ./todos.json --port 2400 And instantly you get: GET /todos GET /todos/1 POST /todos PUT /todos/1 PATCH /todos/1 DELETE /todos/1 No FastAPI. No Express. No setup. 🤯 Why this is useful Instead of: Writing a backend just for testing Maintaining mock endpoints manually Fighting with fake data tools You can: ✅ Spin up a real API in seconds ✅ Test full CRUD flows ✅ Persist changes back to your file ✅ Simulate real backend behavior 🔥 Features 📦 Auto-generates REST routes from your data ✏️ Full CRUD support 💾 Writes changes back to JS
Continue reading on Dev.to Python
Opens in a new tab




