Caution
This example is deprecated. Please see the latest version that uses the v2 API.
Use this starter to spin-up a Webflow App server, enable OAuth installation, create webhooks on sites, and respond to those webhook events.
This project is not meant to be used in production - only an example of how to create an integtation that uses OAuth. The access tokens are being stored in a KVS and looked-up by site id. In production, you'll need to encrypt these access tokens and likely store more than just the token.
- Register an OAuth App in Webflow
- Copy
.env.example
to.env
and populate the values - Clone and run
yarn install
ornpm install
- run
yarn dev
ornpm run dev
to start the server
- Fastify for a webserver
- Level for a key-value store
- Webflow SDK for the Webflow API client
- Nodemon for live-reload during development
This server needs to be accessible by Webflow to recieve Webhook events. You have a couple of options to enable this: