Just testing?
If you're not integrating your contact database at this point, you can skip ahead to copying the code sample and test with data added directly to the request body.
We are using Express since it's a popular way to connect everything in your app. However, these steps are intended for setting up your preferred framework. If your framework is already in place, skip this step.
- Install Express in your app's directory.
$ npm install express
Open up the app in your favorite IDE and navigate to your app.
Double check that Express and Node Fetch were added to the
package.json
dependencies list.
{
"dependencies": {
"express": "^4.17.3"
"node-fetch": "^3.2.3"
}
}