-
Install Rust
-
Install Postgres
$ sudo apt update
$ sudo apt install postgresql postgresql-contrib
- Set db password and create db
$ sudo -i -u postgres
> \password <enter password>
> create database knockturn
- Install diesel cli
$ sudo apt install gcc libpq-dev libssl-dev pkg-config
$ cargo install diesel_cli --no-default-features --features postgres
-
Install grin Dwonload binary and run it.
-
Copy
env.sample
to.env
and customize it:
- set pg password from step 3
WALLET_PASS
- content of.api_secret
(eg file~/.grin/floo/.api_secret
)DOMAIN
- your hostname and port
-
Build the project
cargo build
-
Init db
diesel migration run
-
Run the project