Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxcarlson authored Jul 23, 2024
1 parent a87f958 commit ab135b3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions preview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

# Intro


The ReviewConfig.elm file exposes a function to configure a rule for
installing magic-link authentication, e.g.,

```
config = makeConfig REAL_NAME USER NAME EMAIL
```

# Setup

To try out the installer, clone or fork this repo and
configure the rule as above. When all is done, you will then be the adminstrator of the app.
Now look for the file `vendor-secret/Env.elm` If it is not there, create it. Do not commit it a
nd make an entry for it in your `.gitignore` file. It should read

```
module Env exposing (postmarkApiKey)
postmarkApiKey =
"TOP_SECRET!"
```

where TOP_SECRET is the API key you get from Postmark.com. Postmark is the service
your app will use to send messages to users.


# Demo

1. At the root level, say `make uninstall`. This will ensure that you have a plain vanilla app to start with.

2. In the directory `counter` say `lamdera live`. You should see a "pagified" version of the counter app.

3. Go back to the root of the repo and say `make install`. Now look at the app. It should have additional tabs including "Sign in." Try to sign in per your setup above. After doing so, the "Admin" page should be accessible.

4. Refresh the browser. You should still be signed in.

5. Clck on the sign-out button in the header, far right. Then go to the "Sign in", click "Sign up" and sign up with one of your other email addresses. After you sign in, the admin page should no longer be accessible.

0 comments on commit ab135b3

Please sign in to comment.