Skip to content

mtsraposo/kv_umbrella

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Key-Value Store

Based on the official Elixir website's "Mix and OTP" guide, available here.

The template was created using the command:

  • mix new kv --module KV

To compile, use:

  • mix compile

To run tests, use:

  • mix test

To run distributed tests:

  • First, start a node with
    • iex --sname bar -S mix
  • Then, run tests on another shell with
    • elixir --sname foo -S mix test --only distributed

To launch Elixir Interactive Shell, use:

  • iex -S mix

To create a release name foo in production:

  • MIX_ENV=prod mix release foo

To start a production release named foo:

  • _build/prod/rel/foo/bin/foo start

To connect to the application (from another shell instance):

  • telnet 127.0.0.1 4040 or nc 127.0.0.1 4040