Skip to content

rodneykeeling/borges

Repository files navigation

Borges

A personal cataloging and note-taking system for books that I read or want to read.

Setup

  • cp env-example .env
  • docker compose up -d to get PostgreSQL running
  • cargo install sqlx-cli to get the sqlx binary
  • sqlx database create && sqlx migrate run to create tables and import sample data
  • cargo run
  • open localhost:8000

Testing

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

About

A simple GraphQL-based API for managing personal book notes and reviews

Topics

Resources

Stars

Watchers

Forks

Languages