Update build instructions

feature/v32-tokens
Edward Shen 2021-04-25 00:01:20 -04:00
parent 0857ffadc7
commit d4c0859115
Signed by: edward
GPG Key ID: 19182661E818369F
1 changed files with 9 additions and 1 deletions

View File

@ -8,8 +8,16 @@ This client contains the following features:
## Building
Since we use SQLx there are a few things you'll need to do. First, you'll need
to run the init cache script, which initializes the db cache at
`./cache/metadata.sqlite`. Then you'll need to add the location of that to a
`.env` file:
```sh
cargo build --release
# In the project root
./init_cache.sh
echo "DATABASE_URL=sqlite:./cache/metadata.sqlite" >> .env
cargo build
```
## Cache implementation