This is a script to generate a bunch o fake data to be mounted on a JSON Server and deploy it as a REST API.
git clone https://github.com/jorsh/fake-data-server.git
cd fake-data-server
npm install
nmp run generate-data
npm start
The server should be running locally on http://localhost:3000
At this moment it is ready to be deployed on services like heroku, now, or any other nodejs server.
Take a look at the live demo here
-
You can use JSON Schema Faker to create the schema easily.
-
Refer to faker and chance for details about the data that can be faked.
-
For furhter details about the server (pagination,operators, filters, sorting, slicing, etc) refer to https://github.com/typicode/json-server