Elixir runs on the Erlang Virtual Machine (VM), so the first step is to install Erlang on your Windows machine. Follow these steps:
- Visit the official Erlang website, “Download” section:
- Choose the Windows installer based on your system architecture (32-bit or 64-bit).
- Run the installer and follow the on-screen instructions.
- After the installation is complete, you may need to add the Erlang binaries to your system’s PATH. To do this, find the installation directory (commonly C:\Program Files\Erlang OTP\bin) and add it to the PATH environment variable.
Now that Erlang is installed, let’s proceed with installing Elixir:
- Visit the official Elixir website, “Download” section.
- Choose the Windows installer.
- Run the installer and follow the on-screen instructions.
- Similar to Erlang, you may need to add the Elixir binaries to your system’s PATH. Find the installation directory (commonly C:\Program Files\Elixir\bin) and add it to the PATH environment variable.
This is a simple tool to automatically update the version number of an Elixir project in the mix.exs
, commit the change and create and create a git tag based on the new version.
Check out version_tasks for a more versatile solution.
Although this tool can be set as a dependency in you mix projects, is is rather intended to be used as a globally available command line tool.
mix archive.install hex mix_version
Call the command from within a mix project. With no options, you will be prompted for the new version number.
mix version [options]
$ iex -S mix run
Compiling 1 file (.ex)
00:39:56.784 [info] Accepting connections on port 8080
Erlang/OTP 26 [erts-14.2.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]
Interactive Elixir (1.16.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
$ telnet 127.0.0.1 8080
Compiling 1 file (.ex)
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Ahmed
From Server: Ahmed
and type a message to send to the server and it will be respond like this and we DID IT.