Skip to content

gitbounties/backend

Repository files navigation

gitbounties_backend

crates.io docs.rs MIT/Apache 2.0

Prerequisites

Some tools that will be used

  • just: used as command runner
  • foundry: ethereum testing suite
  • solc: Compiler for solidity
  • surrealdb: used to run repl to surrealdb docker container
  • mkcert: used to generate self signed certificates

You will also need a metamask account to do local testing of the smart contract

Setting up for development

Install git hooks for developers:

just devsetup

Generate self signed certifcates

just certs

Create your own copy of env file and fill out the variables with the secrets

cp .env-example .env

Running for development

We need an instance of surreal db running. You can run a local test database with.

just dev_db

If doing smart contract development, you can run a local node

anvil