Skip to content

cloudflare-apps/example-express-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Express.js Service

An Express.js server for Cloudflare App services.

Local Setup

Requirements

Deploy

Usage

  • 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