JS - Mocking a REST API with JSON Server

This page summarizes the projects mentioned and recommended in the original post on dev.to

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
  • json-server

    Get a full fake REST API with zero coding in less than 30 seconds (seriously)

  • I'm not going to dive deep into all of the possibilities because they are endless. It's worth taking a look at the full documentation in their Github to take advantage of its full power.

  • berry

    📦🐈 Active development trunk for Yarn ⚒

  • Considering you have already created the main structure of your project using NPM or Yarn, install the package to your project using one of the following commands:

  • 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
  • Lowdb

    Simple and fast JSON database

  • JSON Server works based on Low DB a "Tiny local JSON database for small projects". So you need to configure a db.json file that will serve the data.

  • js-json-server-mock-api

  • You can find a fully-working example in this repository.

  • Express

    Fast, unopinionated, minimalist web framework for node.

  • JSON Server will act like a simplified Express server, so, this is how you create the main file required by it to run:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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