dbernheisel / elixir-slack

Round-robin invites to the official [Elixir Slack](https://elixir-lang.slack.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ElixirSlack

Round-robin invites to the official Elixir Slack.

Contributing

Add a new invite token with the following steps:

  1. Click on "Invite People" in the Elixir dropdown menu:

    Open Invite People

  2. Click on "Edit link settings" to change the link expiration date:

    Edit link settings

  3. Select "Never expires" from the expiration select menu:

    Select never expires

  4. Click "Copy invite link", paste it somewhere, and note the token at the end of the URL.

  5. Add the token to the tokens map in runtime.exs along with the current date:

    tokens = %{
      "zt-216sp1w4g-MHgJlFeJKTBCzPejZj7_tw" => "2024-01-24",
      ...,
      "YOUR NEW TOKEN HERE" => "DATE HERE"
    }

Usage

Build and run the app locally:

MIX_ENV=prod mix do deps.get, release

_build/prod/rel/elixir_slack/bin/elixir_slack start

Run the app within the docker container locally:

docker build -t elixir_slack .
docker run --env PORT=8000 -p 8000:8000 elixir_slack

Or, deploy to fly by changing the name in fly.toml and then run:

fly launch

License

MIT. See the License

About

Round-robin invites to the official [Elixir Slack](https://elixir-lang.slack.com)

License:MIT License


Languages

Language:Elixir 72.5%Language:Dockerfile 9.5%Language:Shell 9.4%Language:HTML 8.6%