Fork me on GitHub
#biff
<
2024-03-29
>
jf07:03:41

2 questions: 1. is the documentation on github somewhere? this isnt really necessary, but I am wondering if it might be helpful. Not just for folks to submit corrections... but also to have a history (maybe not really helpful, since you always want to be looking at the latest doc?) 2. I am working through https://biffweb.com/docs/tutorial/landing-page/ now, and am at "Update some of the wording in com.eelchat.email:". I think I know how I should update my code.. but the diff shown doesnt match the current state of the code as generated by -M tutorial. The generated code uses a let, whereas the diff as shown on the tutorial has nothing like that. I'm guessing for me that I would basically remove the let, and just let the function body be the hash? And since the update does not use action (assigned in let), I don't need to worry about that. I am attaching an screenshot of the diff as per tutorial, beside what my generated code looks like.

jf08:03:52

after updating my code, I see this at the console upon signing up for the waitlist:

nREPL server started on port 7888 on host localhost - 
TO: 
SUBJECT: Join the eelchat waitlist

nil

To send emails instead of printing them to the console, add your API keys for MailerSend and Recaptcha to config.env.
[qtp1122624359-46] INFO com.biffweb.impl.middleware -  42ms 303 post /auth/send-link
I understand that I dont have my API keys set up yet... but should I be seeing the nil?

jf08:03:28

if I restore the text of defn signin-link back to the generated code as per -M tutorial I am able to see the text of the email in the console, so this tells me that this isnt to do with me missing keys. Comparing generated vs new code, I was able to fix it so that the text of the email shows in the console by fixing the keys in the hash: :html-body -> :html, :text-body -> :text. Not sure if :message-stream "outbound" is still necessary though, or what it does

Jacob O'Bryant12:03:53

oh whoops, that code has had a couple different updates and I forgot to update the tutorial. the names of the keywords have changed because I switched the default mail provider recently (from Postmark to Mailersend). so you'll want to stick with :html and :text (and no need for :message-stream). I'll update that today. the docs are here by the way: https://github.com/jacobobryant/biff/tree/master/docs

jf13:03:36

got it. Thank you for the support and help!

🙌 1