Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 687 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 687 Bytes

AdChain Bidder Database Manager

NOTES

Must have diesel-cli installed

sudo apt-get update
sudo apt-get install mysql-server libpq-dev libmysqlclient-dev sqlite3 libsqlite3-dev
cargo install diesel_cli

Must have your own .env file containing (DATABASE_URL=mysql://username:password@localhost/acbidder_database)

echo DATABASE_URL=mysql://username:password@localhost/acbidder_database

Must have clean tables for running tests

diesel setup
diesel migration run

or

diesel migration redo

Must change the account and registry address in adchain_registry.rs

Must do tests using 1 thread

cargo test -- --test-threads=1