A personal cataloging and note-taking system for books that I read or want to read.
cp env-example .env
docker compose up -d
to get PostgreSQL runningcargo install sqlx-cli
to get the sqlx binarysqlx database create && sqlx migrate run
to create tables and import sample datacargo run
open 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 test
cargo insta review
to review any changes to snapshot files