Skip to content

JoshAtDoorDash/DoorDashAPI-Nodejs-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DoorDash API Node.js Sample

This sample is an example of how to create a JWT using Node.js when calling the DoorDash API. Additionally, it creates a delivery request using the JWT.

It builds a token that is valid for 30 minutes. Please obtain a set of DoorDash Credentials (Developer ID, Key ID, and Signing Secret) in the DoorDash Developer Portal to use in the application.

This application targets Node.js version 18.14.0. The code source and build files provided in this repository are samples and not intended for production, and are not supported.

Running Sample

Follow these steps to run the sample app:

  1. Clone repository locally.
  2. Open a terminal and change directories to the test-app folder.
  3. Install jsonwebtoken (if not already installed) by running npm install jsonwebtoken in the test-app folder.
  4. Install axios (if not already installed) by running npm install axios in the test-app folder.
  5. Install crypto (if not already installed) by running npm install crypto in the test-app folder.
  6. Run node app.js at the prompt.
  7. Open your browser and enter the hostname and port provided in the app.js, such as http://127.0.0.1:3000/ if you had used 127.0.0.1 for your host and 3000 for your port.

More About DoorDash Credentials

Related Utilities and Samples

Community

Please join the DoorDash Developer Discord community to provide feedback and ask questions about developing with the DoorDash API.

About

Sample Node.js application that calls the DoorDash API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published