You can also clone the project using git command but degit allow you to only retrieve the necessary parts
After cloning the project you will need to install dependencies project using your favorite package manager
This project use pnpm
as it dependencies manager
In order to configure the project you will need to edit the wrangler.toml
file
Go to your Cloudflare Dashboard and create a new R2 bucket.
Copy the name of your bucket and edit your wrangler.toml
file
Go to your Cloudflare Dashboard and create a new D1 database. Copy the id and the name of your d1 database
Once everything is set-up you can deploy your worker.
Once your worker is deployed you have to run initial database migrations
In order to distribute tokens for other users, you will need to create an initial token with elevated privileges
You can generate any kind of random values
Run the following command after replacing ADMIN_TOKEN
with your desired token
And we are done 🎉