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
  • Appwrite - The open-source backend cloud platform
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • 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:

  • Appwrite

    Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.

  • Lowdb

    Simple to use local JSON database. Use native JavaScript API to query. Written in TypeScript. (supports Node, Electron and the browser)

    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:

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

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