elixir-koans icon indicating copy to clipboard operation
elixir-koans copied to clipboard

Add support for CodeSpaces

Open mattvv opened this issue 4 years ago • 7 comments

This adds a devcontainer that has elixir pre-installed so you can do the koans without having to install elixir. Selfishly useful for doing some koans while I'm playing games on my windows PC :)

To use this, you can simply clone the repo using codespaces and the terminal will automatically appear and you can get started by doing

mix deps.get

and then

mix meditate

mattvv avatar Feb 01 '21 15:02 mattvv

@iamvery Works on my machine! (well, GitHub's machine but you get the idea 😂)

Screen Shot 2022-04-09 at 5 09 47 PM

Nezteb avatar Apr 09 '22 22:04 Nezteb

@Nezteb thank you for confirming. @ukutaht @felipesere either of you have thoughts?

iamvery avatar Apr 11 '22 14:04 iamvery

Strongly in favour. For people starting out with Elixir this is probably the best way.

Before merging, does CodeSpaces have a convenient way to launch it with a link? Would be nice to promote this with a Run in CodeSpaces button in the README. Otherwise, maybe add instructions on how to use this in the README?

ukutaht avatar Apr 11 '22 15:04 ukutaht

@ukutaht There is a way in the GitHub UI to do this relatively easily: https://docs.github.com/en/codespaces/developing-in-codespaces/creating-a-codespace#creating-a-codespace

Aside from that there is also the github.dev editor (which can be accessed by pressing the period key . on your keyboard when on a repo's page). https://docs.github.com/en/enterprise-cloud@latest/codespaces/the-githubdev-web-based-editor#opening-the-web-based-editor

As far as I can tell there is no easy way to create a Codespaces link that auto-creates one for people (similar to how Codesandbox does it).

Nezteb avatar Apr 11 '22 22:04 Nezteb

Swooping in! (I heard CodeSandbox 😂)

In the future, CodeSandbox should be able to run Elixir as well. At CodeSandbox we're currently experimenting with this (our backend is in Elixir/Phoenix), by allowing you to configure the Elixir version in CodeSandbox Projects.

Not much to add, just wanted to say that we might support Elixir in the future! 😄

CompuIves avatar Apr 14 '22 09:04 CompuIves

(our backend is in Elixir/Phoenix)

howdidinotknowthat

Nezteb avatar Apr 14 '22 18:04 Nezteb