json-server
Get a full fake REST API with zero coding in less than 30 seconds (seriously) (by typicode)
miragejs
A client-side server to build, test and share your JavaScript app (by miragejs)
Our great sponsors
json-server | miragejs | |
---|---|---|
76 | 17 | |
71,212 | 5,281 | |
- | 0.3% | |
8.6 | 4.3 | |
5 days ago | 10 days ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json-server
Posts with mentions or reviews of json-server.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-01-30.
- Usando Spring Boot RestClient
- JSON-server relicensed to Fair Source License
-
Using json-server to create a mock back-end for front-end development
JSON Server
-
Full Stack To Do list, a step-by-step tutorial
Our backend will be little more than a two-way translation layer between the database and the user interface (UI). Later in this post we will identify other responsibilities of a backend but our implementation will be kept simple to demonstrate the fundamental machinery and concepts. It is worth noting the backend comes in two parts, web server and application server. Both json-server and Express are able to facilitate these roles from the same URL. This is very useful for our tutorial because we do not have to configure the server to manage Cross-Origin Resource Sharing (CORS). It is quite typical for production systems to separate these server roles for all sorts of good reasons but for now it would just create an additional complication.
-
Improve Frontend-Backend development harmony with JSON-Server
JSON-Server creates fake REST API with a minimum amount of configuration, it provides a simple way to create mock RESTful APIs and easily define the required endpoints, allows easy definition of the data schema in a JSON file and can serve as a reference for each figure in the project.
-
Dictionary app
I thought about usingJson Server (hosting the repo with the words on Github to begin with), Googlesheets, or maybe Firestore (i would prefer not to use it ,to avoid extra costs just in case it gets a reasonable amount of users). It isnt a big app so i just want a simple solution for storing the words and fetching them.
- JSON Server: Get a full fake REST API with zero coding in less than 30 seconds
-
You can serve static data over HTTP
There is https://github.com/typicode/json-server that is really useful for that matter
-
which backend technology do you see having the brightest future? (for jobs)
JSON server https://github.com/typicode/json-server
- What part of Frontend you don't like doing, but have to do it?
miragejs
Posts with mentions or reviews of miragejs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-21.
-
Exploring Mirage JS: Simplifying API Mocking in React Development
Mirage JS GitHub Repository
- Mock server
-
The Definitive Guide to Make API Calls in React
For the styles, I'll be using TailwindCSS. To simulate API requests Mirage JS will be used, which is a very easy to use and useful API mocking library. To call this API, we're going to use Fetch.
-
e2e testing setup and thoughts on Playwright
during development we use mirage JS to spin up an in-browser mock server which returns mock data for any API endpoints not currently implemented by the real backend. during integration testing we configure this server to return mock data for all API endpoints in the system, giving us a fixed environment against which our tests can run. test suites can be run in parallel since each time a playwright page is opened a new copy of the webapp, and thus a new copy of the mock server, is launched. these integration tests run whenever a frontend PR is opened or updated.
-
How do you practice with React without setting up your own backend?
Mirage JS is specifically built for this purpose as well. It‘s a frontend JavaScript library meant for mocking backend APIs. https://miragejs.com/
We use miragejs https://miragejs.com/
-
Do tests without seeing the code!
The best case scenario you would be using something like MirageJS, MSW, or even JSON Server, but mocking fetch is always an option.
-
Mock server while developing
Mirage JS is pretty useful and allows you to create complex testing scenarios with its embedded db. Useful when you have relationships between your models.
-
Mocking API calls in React Tests with Nock
Mirage JS: Mirage JS is an API mocking library that lets you build, test, and share a complete working JavaScript application without having to rely on any backend services.
- How to correctly mock node-fetch?
What are some alternatives?
When comparing json-server and miragejs you can also consider the following projects:
Express - Fast, unopinionated, minimalist web framework for node.
msw - Seamless REST/GraphQL API mocking library for browser and Node.js.
Lowdb - Simple and fast JSON database
Nock - HTTP server mocking and expectations library for Node.js
WireMock - A tool for mocking HTTP services
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Next.js - The React Framework
prism - Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
http-server - a simple zero-configuration command-line http server