The beginning of my's Elixir

Introduction
I just start new job. All work I assigned about elixir. Currently, i'm working on replacing rail's service with elixir( use phoenix framework as api endpoint ). It's quite good now because I came from python's background.

Elixir 's Installation
- We need erlang installed
[linux] sudo apt-get install erlang
[osx] brew install erlang

Then

[linux] Goto https://www.erlang-solutions.com/downloads/download-elixir, you may download deb file for ubuntu or whatever distro you have.
[osx] brew install elixir [ping me, if i'm wrong :p]

If you come to this line, let's
>> mix help
mix                   # Run the default task (current: mix run)
mix app.start         # Start all registered apps
mix archive           # List all archives
mix archive.build     # Archive this project into a .ez file
mix archive.install   # Install an archive locally
mix archive.uninstall # Uninstall archives
mix clean             # Delete generated application files
mix cmd               # Executes the given command
mix compile           # Compile source files
mix deps              # List dependencies and their status
mix deps.clean        # Remove the given dependencies' files
mix deps.compile      # Compile dependencies
mix deps.get          # Get all out of date dependencies
mix deps.unlock       # Unlock the given dependencies
mix deps.update       # Update the given dependencies
mix do                # Executes the tasks separated by comma
mix escript.build     # Builds an escript for the project
mix help              # Print help information for tasks
mix hex               # Print hex help information
mix hex.config        # Read or update hex config
mix hex.docs          # Publish docs for package
mix hex.info          # Print hex information
mix hex.key           # Hex API key tasks
mix hex.outdated      # Shows outdated hex deps for the current project
mix hex.owner         # Hex package ownership tasks
mix hex.publish       # Publish a new package version
mix hex.search        # Search for package names
mix hex.user          # Hex user tasks
mix loadconfig        # Loads and persists the given configuration
mix local             # List local tasks
mix local.hex         # Install hex locally
mix local.rebar       # Install rebar locally
mix new               # Create a new Elixir project
mix phoenix.new       # Create a new Phoenix v0.17.0 application
mix run               # Run the given file or expression
mix test              # Run a project's tests
iex -S mix            # Start IEx and run the default task



Then you see a list of tasks that we can play with, next post

Comments

Popular posts from this blog

Changing postgres password and warning