Skip to content

Provides some friendly assistance to get started developing apps on the Tradeshift platform.

Notifications You must be signed in to change notification settings

Tradeshift/bucko

Repository files navigation

Bucko

Provides some friendly assistance to get started developing apps on the Tradeshift platform.

Setup

  1. Install dependencies.

    $ npm install
  2. Get the ngrok account and figure out the auth token in settings as bucko application relies on ngrok tunnel provider. (It's free)

Ngrok settings where to find auth token

  1. Activate the Bucko app on Tradeshift to get API credentials.

  2. Run the command shown in the Bucko app to setup environment variables.

    $ cat > .env << EOF
    # API credentials for Bucko on Tradeshift
    # https://sandbox.tradeshift.com/#/apps/Tradeshift.Bucko
    TS_API_HOST=<api host>
    TS_COMPANY_ID=<company id>
    TS_CONSUMER_KEY=<consumer key>
    TS_CONSUMER_SECRET=<consumer secret>
    TS_TOKEN=<token>
    TS_TOKEN_SECRET=<token secret>
    # Auth token for ngrok tunnel provider
    NGROK_TOKEN=<token for ngrok tunnel>
    EOF
  3. Create an app and release it on Tradeshift.

    $ npm run create-app
  4. Start the server - along with the tunnel - so requests for your app are redirected to your local server.

    $ npm run start-app
  5. Activate your app in Tradeshift (the appstore URL was shown in the output of npm run create-app) and you should be able to develop locally and see the changes in Tradeshift.

Troubleshooting

Application does not show up

  1. Go to the https://localhost:8443 and confirm self-signed certificate

  2. Go the Tradeshift and see your app running

Happy coding!

About

Provides some friendly assistance to get started developing apps on the Tradeshift platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published