Purpose
The purpose of this example is to create a capsule that able to execute REST HTTP command over JSON server
- Run json-server on localhost port 3000 as json-server --watch db.json
- Run rgrok to forward localhost port 3000 as ./ngrok http 3000
- The above 2 termial windows should be keep running
- Inside capsule change localhost to the ngrok forwarding url (CHANGES after restart rgrok)
- Actual REST https server will not require the above steps
- This example is written by Min Cheng.
Before you start!
- Create a Samsung account and download Bixby IDE at https://bixbydevelopers.com/
- Install NODE JS by downloading from offical website https://nodejs.org/en/download/
- Checkout gitHub repository and install json-server https://github.com/typicode/json-server
- Follow instruction to start json-server https://itnext.io/using-json-server-to-create-a-restful-server-in-5-seconds-78b85ccf832b
- Download ngrok executable from ngrok.com (registration is required, may need to switch wifi)
Resources
Bixby Developer Resources:
- Bixby Developer Center: https://bixbydevelopers.com/
- Bixby Developer Support Help Center: https://support.bixbydevelopers.com/hc/en-us
Need Help?
- If you are stuck or need assistance, feel free to reach out to us. We are here to help you with any questions or point you to the right areas of the Bixby Developer Center or the Bixby Help Center. You can reach us by sending your questions via email to support@bixbydevelopers.com.
