https://github.com/crispengari/elixir-startup
💎 learning elixir the programming language.
https://github.com/crispengari/elixir-startup
elixir elixir-lang elixir-phoenix
Last synced: 11 months ago
JSON representation
💎 learning elixir the programming language.
- Host: GitHub
- URL: https://github.com/crispengari/elixir-startup
- Owner: CrispenGari
- License: apache-2.0
- Created: 2021-10-15T07:05:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T20:26:28.000Z (over 4 years ago)
- Last Synced: 2025-04-03T18:52:04.312Z (about 1 year ago)
- Topics: elixir, elixir-lang, elixir-phoenix
- Language: Elixir
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### elixir-startup
Learning `elixir` the programming language.

### Installation
To install `elixir` go to https://elixir-lang.org/install.html
### Checking if elixir is installed'
Run the following command to check if elixir is installed on your matchine.
```shell
elixir --version
# OR
elixir -v
```
### Hello world in `cmd`.
Open `cmd` and run the following command
```
iex
```
Then type the following code.
```shell
IO.puts "hello " <> "world";
```
### Running scripts
Not all `elixir` code will be executed on the `cmd`. We may want to execute it from a file. All we need to do is create an elixir file with extension `.exs` and write some `elixir` code:
```exs
# hello.exs
IO.puts("hello world")
```
To run the file above we just run the following command:
```shell
elixir hello.exs
```
### Code Editor
For the code editor i will be using vscode. So we need to install the following extentions that will help us out in development.
1. vscode-elixir
2. elixir formatter
3. ElixirLS: Elixir support and debugger
4. Dark+ Elixir (for customizing the theme)
5. vscode-elixir-formatter
### References
1. [installation](https://elixir-lang.org/install.html)
1. [docs](https://elixir-lang.org/getting-started/introduction.html)