A Thanksgiving-Day charity site for a Solana community coin. Creator fees go to a line of 104 food charities, one every 15 minutes, and every donation gets a receipt on the site.
Live address: https://turkeycoin.site
| Path | What it is |
|---|---|
docs/ |
The public site that GitHub Pages serves: index.html, hope.config.json, CNAME (turkeycoin.site) and .nojekyll. The counter job adds impact.json here. |
hope.config.json |
A copy of the settings. The admin panel keeps it and docs/hope.config.json the same. |
panel/ |
The online admin panel. Deploy it on Vercel (below). |
.github/workflows/impact.yml |
The job that keeps the “raised so far” counter current, every 15 minutes. |
scripts/, api/, lib/ |
Code the counter job uses, plus refresh-lines.mjs to re-check charities against donate.gg. |
admin.html, server.mjs |
The same editor, for use on your own computer: node server.mjs, then open http://localhost:3000/admin.html. Not published. |
test/ |
Checks: npm test (Node 18+). |
There is nothing to install and no build step.
turkeycoin, make it Public, and don’t add a README. Create repository.docs, panel, scripts, api, lib, test, data folders and the files), then Commit changes..github folder. Folders whose names start with a dot are hidden on a Mac and sometimes don’t get dragged along. If it’s missing: Add file, Create new file, type the name .github/workflows/impact.yml, paste in the contents of that file from this folder, and commit.turkeycoin.site (the CNAME file fills it in). If it’s empty, type it and save. Do this before changing DNS so nobody else can claim the domain.@: 185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153www pointing to viplegend56-glitch.github.ioDelete any parking or forwarding records the registrar added. Don’t add a * record.
turkeycoin. Permissions, Repository permissions: Contents, Read and write. Generate, and copy the token.turkeycoin repo.panel. Framework Preset: Other. Leave the build settings empty.ADMIN_PASSWORD (a long one, 16+ characters) and GITHUB_TOKEN (the token). Type these into Vercel only, never into a file or a chat.….vercel.app address and sign in. If a setting is missing, the page says which one.Changes you make in the panel are saved to the repo straight away and show on the site within a couple of minutes. The panel only redeploys when something in panel/ changes, so saving settings doesn’t trigger a build.
When the token expires, saving stops with “GitHub did not accept the token”. Make a new one, replace GITHUB_TOKEN in Vercel, and redeploy (Deployments, the latest one, Redeploy).
.github/workflows/impact.yml runs every 15 minutes (GitHub sometimes runs it late) and writes docs/impact.json. To run it right away: Actions tab, Update donation counter, Run workflow.
HOPE_RPC_URL (Settings, Secrets and variables, Actions). Without it the job uses a public endpoint, slowly. Add one if runs start failing.docs/impact.json of your own: the job owns that file.node server.mjs
Site at http://localhost:3000, editor at http://localhost:3000/admin.html. The editor can export a hope.config.json; if the panel is ever down, replace both copies in the repo with it.