How to create a Mock Server using Faker.js and JSON-Server

This page summarizes the projects mentioned and recommended in the original post on /r/javascript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • miragejs

    A client-side server to build, test and share your JavaScript app

  • Good article. I use mirage.js https://miragejs.com/ so far happy with the easiness and features

  • msw

    Seamless REST/GraphQL API mocking library for browser and Node.js.

  • What's wrong with https://mswjs.io/?

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • prism

    Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)

  • Running a mock server with fake data is alright, but it's also error-prone. Best approach is always to run the mock against the API specification. You can run the mock server locally with prism, or in the cloud with https://microapis.io/ with just one click.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts