Name | Version |
---|---|
node | 16.x |
json-server | 0.17.0 |
ngrok | 4.3.3 |
Option 1:Running the npm install
command
Option 2:Run the script called install.sh
- Set the localhost
Line 5 : const host = 'localhost';
-
Establish port where the API will work
- Line 6 (cerbero.js) :
const port_json '5000';
- Line 7 (package.json) :
"server": "json-server --watch db.json --port 5000",
Set port on which Cerbero will run
- Line 6 (cerbero.js) :
Line 7 : const port = '8080';
- Set link which generates local ngrok. (Default configuration)
Line 8 : const ngroklocal = 'http://localhost:4040/inspect/http';
To start the cerbero server, we use the command npm run cerbero