This is an example of using json-server to build a fake API server. Here are some steps to get started and deploy on Heroku:
yarn install
yarn start
By default, the server will run on port http://localhost:3200. You can modify the port by setting the PORT environment variable.
heroku create
heroku buildpacks:set heroku/nodejs
And let's push the code to Heroku:
git push heroku master
To generate JSON data, you can use Mockaroo.