{"repo":"rhberro/the-fake-backend","free":true,"listed":false,"github":"https://github.com/rhberro/the-fake-backend","clone":"git clone https://github.com/rhberro/the-fake-backend.git","description":"Build a fake backend by providing the content of files or JavaScript objects through configurable routes.","language":"TypeScript","stars":65,"topics":["fake","data","backend","http","api","server","mock","mocks","graphql","fixture"],"license":"ISC","category":"api-integrations-sdks","readme_excerpt":"the-fake-backend Build a fake backend by providing the content of files or JavaScript objects through configurable routes. This service allows the developer to work on a new feature or an existing one using fake data while the real service is in development. - Installing - Getting Started - Files - Properties - Server - Throttlings - Pagination - Routes - Methods - Search - Overrides - GraphQL - Queries - Mutations - Guides - Overriding responses - Overriding response content - Searching - Paginating - Dynamic params requests - Contributing - Setup library - Example application Installing Start by adding the service as a development dependency. or Getting Started After installing, create a new file that will be responsible for configuring and starting the service. This will create the http://localhost:8080/example endpoint. Files You can also use files content as response instead of using the data property. The script above generates the following two endpoints. Method Path Response ------ -------------------------- -------------------------------------------------- GET http://localhost:8080/cats The data/cats.json file content GET http://localhost:8080/dogs The data/my/custom/path/to/dogs.txt file content Properties Server Property Required Description --------------------------- -------- ------------------------------------------------------------------------------------------- basePath no An API context prefix (e.g. /v1 ) middlewares no An array of express's middlewares pr","default_branch":null,"files":null,"tree":[],"storefront":"/r/rhberro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rhberro/the-fake-backend/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}