An open API service indexing awesome lists of open source software.

https://github.com/alijourney/elixir-template


https://github.com/alijourney/elixir-template

backend docker elixir html shell

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# ElixirSlack

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

## Contributing

Add a new invite token with the following steps:

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

![Open Invite People](./images/screenshot-invite-people.png)

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

![Edit link settings](./images/screenshot-edit-link.png)

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

![Select never expires](./images/screenshot-set-expiration.png)

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:

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

## Usage

Build and run the app locally:

```bash
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:

```bash
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:

```bash
fly launch
```

# License

MIT. See the [License](LICENSE.txt)