mix deps.get to install the necessary dependencies
mix to compile the Elixir files
MIX_ENV=prod mix to compile the Elixir files in production mode
export BACKEND_PORT=8081
export FRONTEND_HOST=http://localhost:8080
iex -S mix to run the compiled files in an interactive Elixir shell
MIX_ENV=prod iex -S mix to run the compiled files in an interactive Elixir shell
mix test to run all test
mix test test/**/*_test.exs to run a specific test file
The backend makes extensive use of String.to_atom() with unsafe user input making the code vulnerable to simple DoS attacks directly through the frontend or through all other sorts of requests!
https://hexdocs.pm/elixir/1.12/Application.html
https://hexdocs.pm/elixir/1.12/IO.html
https://hexdocs.pm/elixir/1.12/List.html
https://hexdocs.pm/elixir/1.12/Map.html
https://hexdocs.pm/elixir/1.12/Enum.html
https://hexdocs.pm/elixir/1.12/Process.html
https://hexdocs.pm/elixir/1.12/Registry.html
Yannis Laaroussi & Lucas Bürgi