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 and initialize git submodules
bun install

Running:

bun run dev
# or:
bun start

To apply migrations to the local Cloudflare env:

bun run db:migrate:local

Local env variables

Copy and update env example:

cp .env.example .env

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.

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

Updating submodules / workers dependencies

If you want to sync latest workers repo, run:

bun run submodule:update

Then commit changes and ask others to run:

bun submodule update

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.

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 11

Languages