Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.02 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.02 KB

better-reads

GitHub CI MIT license

A toolkit to better handle goodread books.

  • Random book pick
  • Shelves reorg

Development

I suggest using direnv, this would work with nix seamlessly.

Run tests

cabal test

Run checks

# hlint
hlint src test app

# fourmolu check
ormolu --mode check $(find . -name '*.hs')

# fourmolu format
ormolu --mode inplace $(find . -name '*.hs')

Run the applications

Build the application binaries

nix-build

Run the cli application

After a successful build, you can use the application from the command line:

result/bin/better-reads-cli --help

Run the web application

The port will be set to 8123 by default, the environment variable PORT overrides the default port.

PORT=8080 result/bin/better-reads-web --help