Skip to content

leihs/leihs-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 20, 2025
b902e79 · Mar 20, 2025
Mar 17, 2025
Aug 9, 2024
Mar 20, 2025
Mar 20, 2025
Mar 4, 2022
Jan 27, 2023
Mar 12, 2025
Mar 13, 2025
May 7, 2024
Sep 12, 2024
Nov 24, 2023
Jul 8, 2024
Jul 10, 2019
Jan 27, 2023
Apr 16, 2019
Mar 13, 2025
Mar 13, 2025
Mar 20, 2025
May 27, 2019
Oct 30, 2023
Mar 13, 2025
Mar 13, 2025
Mar 17, 2025
Dec 27, 2024
Mar 17, 2025
Nov 24, 2023

Repository files navigation

leihs-mail

Development

Start REPL

./bin/dev-run-backend

Fake SMTP server

bundle install
./bin/run_fake_smtp

It respects the LEIHS_MAIL_SMTP_PORT (default 25) and LEIHS_MAIL_POP3_PORT (default 110) environmental variables.

Uberjar

./bin/build
./bin/dev-run-uberjar

Startup and configuration options

see

./bin/dev-run-backend --help

Tests

Tests with fake smtp server

# export run options in each terminal if necessary

# terminal 1
./bin/run_fake_smtp
# terminal 2
boot focus
# terminal 3
./bin/rspec spec/successful_emails_spec.rb spec/failed_emails_spec.rb

Tests without fake smtp server

# export run stuff in each terminal if necessary

# terminal 1
boot focus
# terminal 2
./bin/rspec spec/smtp_server_unreachable_spec.rb

Formatting Code

Clojure

Use ./bin/cljfmt check and ./bin/cljfmt fix.

From vim you can use :! ./bin/cljfmt fix % to format the current file.

Ruby

Use ./bin/rblint and ./bin/rblint --fix.