A personal cataloging and note-taking system for books that I read or want to read.
cp env-example .envdocker compose up -dto get PostgreSQL runningcargo install sqlx-clito get the sqlx binarysqlx database create && sqlx migrate runto create tables and import sample datacargo runopen localhost:8000
Tests use insta for snapshot/approval testing to compare expected responses from the GraphQL server.
They are also using SQLx's test attribute in conjunction with the migrate feature to provide a fresh
database for data isolation in each test.
Running tests:
cargo testcargo insta reviewto review any changes to snapshot files