Share files using Cloudflare Workers and GitHub Private Repositories!
repo
scopenpm
and wrangler
installed and configuredwrangler d1 create file-share-data
wrangler.toml
:name = "file-share"
main = "Source/index.ts"
compatibility_date = "2023-10-02"
[[d1_databases]]
binding = "FileShareBufferDatabase"
database_name = "file-share-data"
database_id = "..." // The ID of the database you created, output in step 5
npm install
to install dependencieswrangler deploy
to publish your projectwrangler secret put GithubPAT
, wrangler secret put GithubOwner
and wrangler secret put GithubRepo
to store your GitHub Personal Access Token, GitHub Owner and GitHub RepositoryThis project is licensed under the terms of the GNU General Public License v3.0.