Mongodb hosted chess opening book. Under construction.
```rust extern crate env_logger;
use dotenv::dotenv;
use mongobook::mongobook::*;
async fn main() -> Result<(), Box
println!("mongobook, under construction");
let mut mongobook = MongoBook::new();
mongobook.connect().await;
println!("{}", mongobook);
let pgn = std::fs::read_to_string("test.pgn").unwrap();
//mongobook.drop_coll("pgns").await;
mongobook.add_pgn_to_book(pgn).await;
Ok(())
}
```
```bash export RUST_LOG=info
export RUST_LOG=debug ```