-
Create your Cloudflare account: https://dash.cloudflare.com/sign-up
- Run this commands:
npm install
npm start
- After starting the project, please accept Cloudflare's terms to use Cloudflare workers
- Run this commands:
-
On your GitHub settings repository, create these actions secrets:
CF_ACCOUNT_ID
How to getCF_API_TOKEN
How to get
-
Run this command to deploy your Cloudflare worker:
npm run deploy
-
Create your FaunaDB account: https://dashboard.fauna.com/accounts/register
-
On your Cloudflare worker service, create these environment vars:
FAUNADB_API
FAUNADB_SECRET
JWT_SECRET_KEY
MONGODB_CONNECTION
npm start
npm run deploy