JSON server for stream-client REST-Based React Apps
using: JSON Server
npm init
npm i json-server
Create a db.json file with some data
{
"streams": []
}
Edit a package.json file
"scripts": {
"start": "json-server -p 3001 -w db.json"
},
Server run
npm start
-
Deploy on Heroku
-
Create New App on Heroku
-
Connect to GitHub & Search for a repository to connect to, Enable automatic deploys from GitHub
-
Open your App
references:
GitHub Integration (Heroku GitHub Deploys)