Dashboard for the Bitcoin Yield Hub and Native nBTC.
- bun >= v1.2.20
- proper EditorConfig mode setup in your editor!
prettierto format the code.
Note: we use Bun instead of Node.js for JS and TS execution and package management.
Run the dev server (using wrangler Cloudflare framework as a backend):
# firstly install the latest dependencies and initialize git submodules
bun installRunning:
bun run dev
# or:
bun startTo apply migrations to the local Cloudflare env:
bun run db:migrate:localCopy and update env example:
cp .env.example .envParticipating in open source is often a highly collaborative experience. We’re encouraged to create in public view, and we’re incentivize to welcome contributions of all kinds from people around the world.
Check out contributing repo for our guidelines & policies for how to contribute. Note: we require DCO! Thank you to all those who have contributed!
After cloning the repository, make sure to run make setup-hooks.
Run bun run prepare to install git hooks that will run on commit and code push.
You will need to rerun typegen whenever you make changes to wrangler.toml.
bun run cf-typegenIf you want to sync latest workers repo, run:
bun run submodule:updateThen commit changes and ask others to run:
bun submodule updateWe are using Tailwind CSS and DaisyUI:
- Don't create new styles.
- Try to reuse the styles or update the theme in tailwind.css file.
- Avoid creating unnecessary wrappers or components. DaisyUI with a properly configure theme should be enough.
See also the Vite docs on css.
See contributing repo for reporting security vulnerability or sharing a security feedback.