Dashboard for the Bitcoin Yield Hub and Native nBTC
.
- bun >= v1.2.20
- proper EditorConfig mode setup in your editor!
prettier
to 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
bun install
Running:
bun run dev
# or:
bun start
To apply migrations to the local Cloudflare env:
bun run db:migrate:local
Participating 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-typegen
We 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.
- Use React DaisyUI for reactive components.
See also the Vite docs on css.
See contributing repo for reporting security vulnerability or sharing a security feedback.