Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This project utilizes Node.js, Json, and TypeScript to create a fake API for server-side mocking. The setup includes a src folder, a database for mock data, and a types directory for type definitions. It serves as a lightweight solution for simulating API endpoints.

Notifications You must be signed in to change notification settings

itsyst/server-mock-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Mock API

A Fake REST API using json-server.

This could help you shape your frontend application without having to rely on any backend services.

Install

  npm install

Generate data

  npm run seed

Available endpoints would be:

  • GET /products
  • POST /products
  • GET /products/:id
  • PUT /products/:id
  • DELETE /products/:id

Run Server

  npm run server

About

This project utilizes Node.js, Json, and TypeScript to create a fake API for server-side mocking. The setup includes a src folder, a database for mock data, and a types directory for type definitions. It serves as a lightweight solution for simulating API endpoints.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published