data
json-server
data | json-server | |
---|---|---|
5 | 76 | |
746 | 71,268 | |
3.2% | - | |
6.5 | 8.6 | |
5 months ago | 5 days ago | |
TypeScript | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
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.
data
- What direction can I take to mocking a data structure that is relational on the front-end while I wait for backend endpoints to be created?
- What direction can I take to mock a (relational?) data-structure on the front-end while I wait for backend endpoints to be created?
-
Mock Service Worker is awesome
It supports both REST and GraphQL APIs, it can delay the response of mocked API endpoints so the endpoint feels more real-life, it has it's own in-memory database with @msw/data package for more complex querying (e.g, searching, sorting), it can also run mocks in NodeJS environment instead of Service Worker (really useful for testing). Next, let's take a look at which problems msw can solve and how.
-
Why I migrated to msw from json-server?
Next steps mswjs/data
-
Announcing "@mswjs/data"—data modeling library for testing JavaScript applications
Today we are proud to announce the Data library—a standalone package to model and query data in your tests and beyond. Although the project is at the early stage of development and doesn't solve every problem right away, letting you try it out and gather your feedback is crucial for us to refine and shape the future experience.
json-server
- 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?
What are some alternatives?
msw - Seamless REST/GraphQL API mocking library for browser and Node.js.
Express - Fast, unopinionated, minimalist web framework for node.
ng-mocks - Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
Lowdb - Simple and fast JSON database
strong-mock - Type safe mocking library for TypeScript
camouflage - Camouflage is a backend mocking tool for HTTP, gRPC, Websockets and Thrift protocols, which helps you carry out your front end prototyping, unit testing, functional/performance testing in silos, in absence of one or more Microservices/APIs.
WireMock - A tool for mocking HTTP services
Faker.js - What really happened with Aaron Swartz?
Next.js - The React Framework
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
http-server - a simple zero-configuration command-line http server