Skip to content

Shadowz3n/clean-worker-api

Repository files navigation

Known Vulnerabilities GPLv3 License Open Source

First steps

  • 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
  • On your GitHub settings repository, create these actions secrets:

  • 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

image

Debbuging:

npm start

Deploy:

npm run deploy