webflow-app-starter
webflow-app-starter copied to clipboard
A boilerplate Webflow App server that creates and responds to Webhooks
[!CAUTION] This example is deprecated. Please see the latest version that uses the v2 API.
Webflow App Starter
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.
Get Running
- Register an OAuth App in Webflow
- Copy
.env.exampleto.envand populate the values - Clone and run
yarn installornpm install - run
yarn devornpm run devto start the server
This starter uses the following tools
- Fastify for a webserver
- Level for a key-value store
- Webflow SDK for the Webflow API client
- Nodemon for live-reload during development
Requirements
This server needs to be accessible by Webflow to recieve Webhook events. You have a couple of options to enable this: