Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnhunter/try-api-fake
A quick template for generating api fakes using json-server and faker. Useful for prototyping front-ends.
https://github.com/johnhunter/try-api-fake
Last synced: 8 days ago
JSON representation
A quick template for generating api fakes using json-server and faker. Useful for prototyping front-ends.
- Host: GitHub
- URL: https://github.com/johnhunter/try-api-fake
- Owner: johnhunter
- Created: 2021-03-13T18:59:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-23T10:16:58.000Z (about 1 year ago)
- Last Synced: 2024-10-13T23:03:52.882Z (23 days ago)
- Language: HTML
- Size: 56.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Try api fake
A quick template for generating api fakes using json-server and faker. Useful for prototyping front-ends.
Start the API server `npm start`
- Provides an API as per config in `./json-server.json`
- API definition is defined in `./generate.js` which is watched by the API service
- Provides a static file server from `/public`In this case we're using [@faker-js/faker](https://github.com/faker-js/faker) to generate data
For more details see the docs at https://github.com/typicode/json-server#readme