LogoLogo
  • Overview
    • How to obtain an API key?
  • Webhooks
    • About Webhooks
    • Quickstart Guide
      • Set up your server
      • Creating a webhook
      • Configure your server
      • Review your webhooks
      • Secure webhooks
    • Webhook events
      • About events
      • Event List
    • Troubleshooting
  • REST API
    • Overview
      • Current Version
      • Authentication
      • Pagination
    • Quickstart Guide
      • Find the API key
      • Playground
    • API References
      • Rides
      • Search
      • Customers
      • Drivers
      • Webhooks
      • Auth
    • Errors
      • Error codes
    • Troubleshooting
Powered by GitBook
On this page
  • Creating our local development environment
  • Expose local development to the internet

Was this helpful?

  1. Webhooks
  2. Quickstart Guide

Set up your server

PreviousQuickstart GuideNextCreating a webhook

Last updated 3 years ago

Was this helpful?

For the purposes of this tutorial, we're going to use a local server to receive messages from EverTransit. For this, we will use NodeJS and express to create our local development environment, and ngrok to expose our local development environment to the internet.

Note: You can download the complete source code for this project .

Creating our local development environment

First of all, we need to have NodeJS installed. If you don't have it installed, you can install it from .

Next, we create our little NodeJS project and install the necessary dependencies.

mkdir evertransit-webhooks && cd evertransit-webhooks && touch index.js
npm init --yes
npm install express

Expose local development to the internet

We'll use ngrok to do this. ngrok is available, free of charge, for all major operating systems. For more information, see .

After installing ngrok, you can expose your localhost by running ngrok http 3000 on the command line. 3000 is the port number on which our server will listen for messages. You should see a line that looks something like this:

Make a note of the https://*.ngrok.io URL. We'll use it to set up our webhook.

from the EverTransit-webhooks-example repo
here
the ngrok download page