Example Service

by cloudflare-apps

GitHub Readme.md

Example Express.js Service

An Express.js server for Cloudflare App services.

Local Setup




  • npm install: Install dependencies
  • npm start: Start server
  • npm test: Test routes
  • npm lint: Lint project

Cloudflare Service Configuration

After signing in with Cloudflare account, create a new service with the following configuration.

Field Value OAuth Authentication URL https://accounts.example.com/authorize OAuth Client ID Fetch from 3rd party OAuth configuration OAuth Scope [your desired scopes] OAuth Token URL https://accounts.example.com/api/token OAuth Client Secret Fetch from 3rd party OAuth configuration Metadata Endpoint https://yourservicedomain.com/account-metadata