Skip to content

gonative-cc/byield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Native BYield

Dashboard for the Bitcoin Yield Hub and Native nBTC.

Development

Dependencies

  • 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.

Quick Start

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

Contributing

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.

Development

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

Styling

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.

Security

See contributing repo for reporting security vulnerability or sharing a security feedback.

About

Bitcoin Yield Hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 10

Languages